Permalink
Browse files

Add compatibility with python3

  • Loading branch information...
1 parent 47a6b10 commit f7b2296dad07330fd6dbaf1f6583ddbabcce38a1 @Baldanos Baldanos committed Oct 4, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/hydrafw-version.py
@@ -12,8 +12,8 @@
if len(args)==1:
sys.stdout = open(args[0], 'w')
git=Repo(search_parent_directories=True).git
- print '#define HYDRAFW_GIT_TAG "' + git.describe(tags=True,always=True,dirty=True,long=True) + '"'
- print '#define HYDRAFW_CHECKIN_DATE "' + git.show(['-s', '--pretty=format:%ai']).partition(' ')[0] + '"'
+ print('#define HYDRAFW_GIT_TAG "' + git.describe(tags=True,always=True,dirty=True,long=True) + '"')
+ print('#define HYDRAFW_CHECKIN_DATE "' + git.show(['-s', '--pretty=format:%ai']).partition(' ')[0] + '"')
else:
parser.print_help()
sys.exit(1)

0 comments on commit f7b2296

Please sign in to comment.