Skip to content

Commit 3ae548f

Browse files
committed
Prevent extract_config running on Python 2
Closes #177
1 parent a66405e commit 3ae548f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git_repo/extract_config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ def extract_gitrepo_conf(gconf_old, gconf_new):
2424
print("🍻 git-repo configuration extracted to new file: {}".format(gconf_new))
2525

2626
if __name__ == '__main__':
27+
if sys.version_info < (3, ):
28+
sys.exit('Please use with python version 3')
2729
if '-h' in sys.argv or '--help' in sys.argv:
2830
sys.exit('Usage: {} [.gitconfig-repos] [.gitconfig]'.format(sys.argv[0]))
2931
sys.exit(extract_gitrepo_conf(

0 commit comments

Comments
 (0)