Skip to content

Commit

Permalink
Specify utf-8 encoding in version.py (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
nashsibanda authored Jul 24, 2024
1 parent 995cf24 commit 2bc0068
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions version.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,12 @@ def call_git_describe(abbrev=5):
"""
try:
p = Popen(['git', 'describe', '--long', '--tags', '--always',
'--abbrev=%d' % abbrev], stdout=PIPE, stderr=PIPE)
p = Popen(
['git', 'describe', '--long', '--tags', '--always', '--abbrev=%d' % abbrev],
stdout=PIPE,
stderr=PIPE,
encoding='utf-8',
)
p.stderr.close()
line = p.stdout.readlines()[0].strip()

Expand Down

0 comments on commit 2bc0068

Please sign in to comment.