Skip to content

Commit f629fa5

Browse files
Pete Wyckoffgitster
authored andcommitted
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>
1 parent 4f9273d commit f629fa5

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

git-p4.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,20 @@
77
# 2007 Trolltech ASA
88
# License: MIT <http://www.opensource.org/licenses/mit-license.php>
99
#
10-
1110
import sys
1211
if sys.hexversion < 0x02040000:
1312
# The limiter is the subprocess module
1413
sys.stderr.write("git-p4: requires Python 2.4 or later.\n")
1514
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
2024

2125
verbose = False
2226

0 commit comments

Comments
 (0)