]> arthur.barton.de Git - bup.git/commitdiff
import cleanup
authorGabriel Filion <lelutin@gmail.com>
Mon, 16 Aug 2010 01:29:29 +0000 (21:29 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Sun, 22 Aug 2010 07:12:15 +0000 (00:12 -0700)
Remove unused imported modules.

I started using the pyflakes.vim plugin and it automagically shows a
bunch of problems/uncleanliness in the code. It helped me pull this out
in 15mins.

This change shouldn't have any impact on performance or functionality
but it makes the code cleaner.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
17 files changed:
cmd/fsck-cmd.py
cmd/ftp-cmd.py
cmd/fuse-cmd.py
cmd/index-cmd.py
cmd/join-cmd.py
cmd/ls-cmd.py
cmd/random-cmd.py
cmd/save-cmd.py
cmd/server-cmd.py
cmd/split-cmd.py
cmd/version-cmd.py
cmd/web-cmd.py
lib/bup/client.py
lib/bup/drecurse.py
lib/bup/git.py
lib/bup/hashsplit.py
lib/bup/index.py

index aa78d88320af16624f1ccd8d59e9fad3ba6fa6e3..1c2505812d8c7a75981ff246519798d3439228ff 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-import sys, os, glob, subprocess, time
+import sys, os, glob, subprocess
 from bup import options, git
 from bup.helpers import *
 
index f103a61f3867e344b6c3330d8cf09366202004f6..1edb5f521442d731f50a105100639b22249e37c2 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-import sys, os, re, stat, fnmatch
+import sys, os, stat, fnmatch
 from bup import options, git, shquote, vfs
 from bup.helpers import *
 
index 5e9809ab9db7135aea9bee41d00c5fb0f8d50029..450d366eb311ca2e9cf53b2627017892d429524b 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-import sys, os, stat, errno, re, time, tempfile
+import sys, os, errno
 from bup import options, git, vfs
 from bup.helpers import *
 try:
index 15ee023c82061f0a937b17f29bb9c7494093f417..be064fb3f79739fc7d5ac08fcb7f8db4eb7331fe 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-import os, sys, stat, time
+import sys, stat, time
 from bup import options, git, index, drecurse
 from bup.helpers import *
 
index 0e1e1ffbc8108b3404d0dd3fdc3379b0d8dac72f..81febac4b23c39b3cd3d973e93064eb9f477bd45 100755 (executable)
@@ -1,8 +1,7 @@
 #!/usr/bin/env python
-import sys, time, struct
-from bup import hashsplit, git, options, client
+import sys
+from bup import git, options, client
 from bup.helpers import *
-from subprocess import PIPE
 
 
 optspec = """
index 5a22c1daafa078234c843e94344114a33a27dce5..57f4275cf84a28cf0ebb1270de62f0d77d7f02ea 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-import sys, os, stat
+import sys, stat
 from bup import options, git, vfs
 from bup.helpers import *
 
index 46fd4f2673db0cfe563f9f97f8eb0945cf0a07e7..9a24face2598f27ab81bfee007fa2bef7365315d 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-import sys, mmap
+import sys
 from bup import options, _faster
 from bup.helpers import *
 
index 9078455f29d5444dbc8d4adea37f1631d8308055..23bcabce9892f2bc95b545bf00402b85d72b00d7 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-import sys, re, errno, stat, time, math
+import sys, stat, time, math
 from bup import hashsplit, git, options, index, client
 from bup.helpers import *
 
index b1a7f6f7ac3c607fa10ce9002e4cedb0641faf18..5acc98a441c155c582fecd9ed9c506313265ee7f 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-import sys, struct, mmap
+import sys, struct
 from bup import options, git
 from bup.helpers import *
 
index 6546d1fa0c7e4bebc5ac3324c5054d03f884f4da..26340bfe9a06c0e03d69169d65a6ffd9c7d623bd 100755 (executable)
@@ -1,8 +1,7 @@
 #!/usr/bin/env python
-import sys, time, struct
+import sys, time
 from bup import hashsplit, git, options, client
 from bup.helpers import *
-from subprocess import PIPE
 
 
 optspec = """
index 3469086d1293c16afb4911ea36f91833f87f2446..7ee65f97eeaca6bcf6a90bc82517e5bd39267c4b 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-import sys, os, glob
+import sys
 from bup import options
 from bup.helpers import *
 
index 6092ad24b1ebceeabe3a33afda629e1962b1bebb..d0ca73046f433f8fc274a5fab7b973c997c43a2a 100755 (executable)
@@ -1,8 +1,7 @@
 #!/usr/bin/env python
-import sys, stat, cgi, shutil, urllib, mimetypes, posixpath, time
+import sys, stat, urllib, mimetypes, posixpath, time
 import tornado.httpserver
 import tornado.ioloop
-import tornado.template
 import tornado.web
 from bup import options, git, vfs
 from bup.helpers import *
index a642e4db411980e6a755e4f6cf7bac74f17f3b85..941cdfe54d0587894c4165a3cee23fe703f04c0a 100644 (file)
@@ -1,4 +1,4 @@
-import re, struct, errno, select, time
+import re, struct, errno, time
 from bup import git, ssh
 from bup.helpers import *
 
index a5fddaf7e45bef970624ceea115f4ebb734195a1..169aa31c64f549e77799381ed044d5672910e184 100644 (file)
@@ -1,4 +1,4 @@
-import stat, heapq
+import stat
 from bup.helpers import *
 
 try:
index a978daacde2669b3fae5f8d15ec25d16a264a472..87351a1caa53e88dd42745b10ae0fd8139b3c5e5 100644 (file)
@@ -2,7 +2,7 @@
 bup repositories are in Git format. This library allows us to
 interact with the Git data structures.
 """
-import os, errno, zlib, time, subprocess, struct, stat, re, tempfile
+import os, zlib, time, subprocess, struct, stat, re, tempfile
 import heapq
 from bup.helpers import *
 
index 28e90d28a676f24aa121e070f3e60fe74d3f27e2..71e0327da6ed07a6b43b4c5582b281e593e8bb7a 100644 (file)
@@ -1,4 +1,4 @@
-import sys, math
+import math
 from bup import _faster
 from bup.helpers import *
 
index bc057f90ec5940e28bcd1908b0403da7cdf0df6a..623b2d6c71e5ed83f6469fba4a9448eb2a3dfe85 100644 (file)
@@ -1,4 +1,4 @@
-import os, stat, time, struct, tempfile
+import os, stat, struct, tempfile
 from bup.helpers import *
 
 EMPTY_SHA = '\0'*20