aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-05-31 18:28:29 -0500
committerbors-servo <metajack+bors@gmail.com>2015-05-31 18:28:29 -0500
commitcdc0b88f6984b7cb395a98a59e4829eb62b1e451 (patch)
tree8dfe755d08a15ed24b19d6b85fff5e3b20c4863f /python/servo
parent591614347f9ca5568974861e82c0c918e51e2974 (diff)
parent7bddb1185fae3047128fc3b7b0b4594874ba4d6c (diff)
downloadservo-cdc0b88f6984b7cb395a98a59e4829eb62b1e451.tar.gz
servo-cdc0b88f6984b7cb395a98a59e4829eb62b1e451.zip
Auto merge of #6235 - frewsxcv:rm-python-unused-imports, r=metajack
Found using flake8 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6235) <!-- Reviewable:end -->
Diffstat (limited to 'python/servo')
-rw-r--r--python/servo/build_commands.py2
-rw-r--r--python/servo/post_build_commands.py7
2 files changed, 2 insertions, 7 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py
index 42599bd6766..fd36afec812 100644
--- a/python/servo/build_commands.py
+++ b/python/servo/build_commands.py
@@ -55,7 +55,7 @@ def notify_win(title, text):
def notify_darwin(title, text):
- import AppKit, Foundation, objc
+ import Foundation, objc
NSUserNotification = objc.lookUpClass("NSUserNotification")
NSUserNotificationCenter = objc.lookUpClass("NSUserNotificationCenter")
diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py
index 385e71ebee7..0dae99e0a87 100644
--- a/python/servo/post_build_commands.py
+++ b/python/servo/post_build_commands.py
@@ -1,15 +1,10 @@
from __future__ import print_function, unicode_literals
-import argparse
import os
import os.path as path
-from os import chdir
import subprocess
-import SimpleHTTPServer
-import SocketServer
-import mozdebug
import sys
-from shutil import copytree, rmtree, ignore_patterns, copy2
+from shutil import copytree, rmtree, copy2
from mach.registrar import Registrar