You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MestreLion#23
git-restore-mtime fails on python3 since output from subprocesses is
interpreted as bytes instead of strings.
Modify calls to subprocess methods to pass "universal_newlines=True", so that
output is returned as strings instead, which more closely resembles how python2
interprets things. This also allows the script to still run on python2 as the
"universal_newlines" keyword is ignored.
With this change, there's no need for the python2 vs. python3 text() method, so
its definition and usages were removed as well.
Tested on Linux: python 2.7, python 3.4, python 3.5
I've packaged git-tools for Fedora and am now receiving bugzilla reports related to Python 3:
https://bugzilla.redhat.com/show_bug.cgi?id=1322472
I've created a sample git repo and am attempting to use
git-restore-mtime
on it using various python interpreters.When running git-restore-mtime using the Python 3.4 interpreter, I get:
When running git-restore-mtime using the Python 3.5 interpreter, I get:
The text was updated successfully, but these errors were encountered: