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>
#!/usr/bin/env python
-import sys, os, glob, subprocess, time
+import sys, os, glob, subprocess
from bup import options, git
from bup.helpers import *
#!/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 *
#!/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:
#!/usr/bin/env python
-import os, sys, stat, time
+import sys, stat, time
from bup import options, git, index, drecurse
from bup.helpers import *
#!/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 = """
#!/usr/bin/env python
-import sys, os, stat
+import sys, stat
from bup import options, git, vfs
from bup.helpers import *
#!/usr/bin/env python
-import sys, mmap
+import sys
from bup import options, _faster
from bup.helpers import *
#!/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 *
#!/usr/bin/env python
-import sys, struct, mmap
+import sys, struct
from bup import options, git
from bup.helpers import *
#!/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 = """
#!/usr/bin/env python
-import sys, os, glob
+import sys
from bup import options
from bup.helpers import *
#!/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 *
-import re, struct, errno, select, time
+import re, struct, errno, time
from bup import git, ssh
from bup.helpers import *
-import stat, heapq
+import stat
from bup.helpers import *
try:
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 *
-import sys, math
+import math
from bup import _faster
from bup.helpers import *
-import os, stat, time, struct, tempfile
+import os, stat, struct, tempfile
from bup.helpers import *
EMPTY_SHA = '\0'*20