git p4: remove unused imports
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>
Pete Wyckoff committed
Jan 26, 2013 at 22:11 UTC
f629fa597c1736a419e2bd68bbca2883c6a143cf
1 file changed
+9
-5
git-p4.py
+9
-5
@@ -7,16 +7,20 @@
7
# 2007 Trolltech ASA
8
# License: MIT <http://www.opensource.org/licenses/mit-license.php>
9
#
10
-
10
import sys
11
if sys.hexversion < 0x02040000:
12
# The limiter is the subprocess module
13
sys.stderr.write("git-p4: requires Python 2.4 or later.\n")
14
sys.exit(1)
16
-
17
-import optparse, os, marshal, subprocess, shelve
18
-import tempfile, getopt, os.path, time, platform
19
-import re, shutil
15
+import os
16
+import optparse
17
+import marshal
18
+import subprocess
19
+import tempfile
20
+import time
21
+import platform
22
+import re
23
+import shutil
24
25
verbose = False
26