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>
This commit is contained in:
Pete Wyckoff 2013-01-26 22:11:05 -05:00 committed by Junio C Hamano
parent 4f9273d27b
commit f629fa597c

View File

@ -7,16 +7,20 @@
# 2007 Trolltech ASA # 2007 Trolltech ASA
# License: MIT <http://www.opensource.org/licenses/mit-license.php> # License: MIT <http://www.opensource.org/licenses/mit-license.php>
# #
import sys import sys
if sys.hexversion < 0x02040000: if sys.hexversion < 0x02040000:
# The limiter is the subprocess module # The limiter is the subprocess module
sys.stderr.write("git-p4: requires Python 2.4 or later.\n") sys.stderr.write("git-p4: requires Python 2.4 or later.\n")
sys.exit(1) sys.exit(1)
import os
import optparse, os, marshal, subprocess, shelve import optparse
import tempfile, getopt, os.path, time, platform import marshal
import re, shutil import subprocess
import tempfile
import time
import platform
import re
import shutil
verbose = False verbose = False