summaryrefslogtreecommitdiff
path: root/git-p4.py
diff options
context:
space:
mode:
authorPete Wyckoff <pw@padd.com>2013-01-27 03:11:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-01-27 06:00:38 (GMT)
commitf629fa597c1736a419e2bd68bbca2883c6a143cf (patch)
tree7e7a7d30b53f7b5116fc62169af0097e8d965627 /git-p4.py
parent4f9273d27b399c9b6e0be372e607b9a8176c0699 (diff)
downloadgit-f629fa597c1736a419e2bd68bbca2883c6a143cf.zip
git-f629fa597c1736a419e2bd68bbca2883c6a143cf.tar.gz
git-f629fa597c1736a419e2bd68bbca2883c6a143cf.tar.bz2
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>
Diffstat (limited to 'git-p4.py')
-rwxr-xr-xgit-p4.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/git-p4.py b/git-p4.py
index fb77c56..47d092d 100755
--- 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>
#
-
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