Skip to content

Commit

Permalink
import cleanup
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
lelutin authored and apenwarr committed Aug 22, 2010
1 parent bacd2e7 commit 2ff672c
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 21 deletions.
2 changes: 1 addition & 1 deletion cmd/fsck-cmd.py
Original file line number Diff line number Diff line change
@@ -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 *

Expand Down
2 changes: 1 addition & 1 deletion cmd/ftp-cmd.py
Original file line number Diff line number Diff line change
@@ -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 *

Expand Down
2 changes: 1 addition & 1 deletion cmd/fuse-cmd.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion cmd/index-cmd.py
Original file line number Diff line number Diff line change
@@ -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 *

Expand Down
5 changes: 2 additions & 3 deletions cmd/join-cmd.py
Original file line number Diff line number Diff line change
@@ -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 = """
Expand Down
2 changes: 1 addition & 1 deletion cmd/ls-cmd.py
Original file line number Diff line number Diff line change
@@ -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 *

Expand Down
2 changes: 1 addition & 1 deletion cmd/random-cmd.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
import sys, mmap
import sys
from bup import options, _faster
from bup.helpers import *

Expand Down
2 changes: 1 addition & 1 deletion cmd/save-cmd.py
Original file line number Diff line number Diff line change
@@ -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 *

Expand Down
2 changes: 1 addition & 1 deletion cmd/server-cmd.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
import sys, struct, mmap
import sys, struct
from bup import options, git
from bup.helpers import *

Expand Down
3 changes: 1 addition & 2 deletions cmd/split-cmd.py
Original file line number Diff line number Diff line change
@@ -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 = """
Expand Down
2 changes: 1 addition & 1 deletion cmd/version-cmd.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
import sys, os, glob
import sys
from bup import options
from bup.helpers import *

Expand Down
3 changes: 1 addition & 2 deletions cmd/web-cmd.py
Original file line number Diff line number Diff line change
@@ -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 *
Expand Down
2 changes: 1 addition & 1 deletion lib/bup/client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import re, struct, errno, select, time
import re, struct, errno, time
from bup import git, ssh
from bup.helpers import *

Expand Down
2 changes: 1 addition & 1 deletion lib/bup/drecurse.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import stat, heapq
import stat
from bup.helpers import *

try:
Expand Down
2 changes: 1 addition & 1 deletion lib/bup/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 *

Expand Down
2 changes: 1 addition & 1 deletion lib/bup/hashsplit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import sys, math
import math
from bup import _faster
from bup.helpers import *

Expand Down
2 changes: 1 addition & 1 deletion lib/bup/index.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os, stat, time, struct, tempfile
import os, stat, struct, tempfile
from bup.helpers import *

EMPTY_SHA = '\0'*20
Expand Down

0 comments on commit 2ff672c

Please sign in to comment.