Merge pull request #3443 from jepler/python-version-compat
makeqstrdata: Work with older Python
This commit is contained in:
commit
8eda9174b2
@ -17,8 +17,9 @@ import collections
|
||||
import gettext
|
||||
import os.path
|
||||
|
||||
sys.stdout.reconfigure(encoding='utf-8')
|
||||
sys.stderr.reconfigure(errors='backslashreplace')
|
||||
if hasattr(sys.stdout, 'reconfigure'):
|
||||
sys.stdout.reconfigure(encoding='utf-8')
|
||||
sys.stderr.reconfigure(errors='backslashreplace')
|
||||
|
||||
py = os.path.dirname(sys.argv[0])
|
||||
top = os.path.dirname(py)
|
||||
|
Loading…
x
Reference in New Issue
Block a user