Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git p4: remove unused imports
author
Pete Wyckoff
<pw@padd.com>
Sun, 27 Jan 2013 03:11:05 +0000
(22:11 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 27 Jan 2013 06:00:38 +0000
(22:00 -0800)
Found by "pyflakes" checker tool.
Modules shelve, getopt were unused.
Module os.path is exported by os.
Reformat one-per-line as is PEP008 suggested style.
Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
4f9273d
)
diff --git
a/git-p4.py
b/git-p4.py
index fb77c56049b5774edd4daedad8f860a2f0a32431..47d092d2e56033919a8a19a15f0912256e23ac69 100755
(executable)
--- a/
git-p4.py
+++ b/
git-p4.py
@@
-7,16
+7,20
@@
# 2007 Trolltech ASA
# License: MIT <http://www.opensource.org/licenses/mit-license.php>
#
# 2007 Trolltech ASA
# License: MIT <http://www.opensource.org/licenses/mit-license.php>
#
-
import sys
if sys.hexversion < 0x02040000:
# The limiter is the subprocess module
sys.stderr.write("git-p4: requires Python 2.4 or later.\n")
sys.exit(1)
import sys
if sys.hexversion < 0x02040000:
# The limiter is the subprocess module
sys.stderr.write("git-p4: requires Python 2.4 or later.\n")
sys.exit(1)
-
-import optparse, os, marshal, subprocess, shelve
-import tempfile, getopt, os.path, time, platform
-import re, shutil
+import os
+import optparse
+import marshal
+import subprocess
+import tempfile
+import time
+import platform
+import re
+import shutil
verbose = False
verbose = False