diff options
author | Adam Spiers <git@adamspiers.org> | 2016-06-11 23:26:22 +0100 |
---|---|---|
committer | Adam Spiers <git@adamspiers.org> | 2018-05-15 13:42:16 +0100 |
commit | 25972db39d796575f17a20ebc6aea628f5816ed6 (patch) | |
tree | 2b2b61c99d89ada2be99f470094445f7ab211d97 /git_deps/handler.py | |
parent | 2c9d23b0291157eb1096384ff76e0122747b9bdf (diff) | |
download | git-deps-25972db39d796575f17a20ebc6aea628f5816ed6.tar.gz |
fix PEP8 issues
Diffstat (limited to 'git_deps/handler.py')
-rwxr-xr-x | git_deps/handler.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/git_deps/handler.py b/git_deps/handler.py index 2fe71ad..badc27e 100755 --- a/git_deps/handler.py +++ b/git_deps/handler.py @@ -3,18 +3,20 @@ from __future__ import print_function import os -import re import subprocess import sys -from urlparse import urlparse, urljoin +from urlparse import urlparse + def abort(msg, exitcode=1): print(msg, file=sys.stderr) sys.exit(exitcode) + def usage(): abort("usage: git-handler URL") + def main(args): if len(args) != 1: usage() @@ -30,6 +32,7 @@ def main(args): subprocess.Popen(['gitk', '--all', '--select-commit=%s' % rev]) + def run(): main(sys.argv[1:]) |