Permalink
Browse files

BF: print(RunTimeInfo()) not working due to unicode/str error

The code was trying to sort by lower() which wasn't necessary and
hard to implement in a way that supports Py2 and Py3 together

fixes #1825
  • Loading branch information...
peircej committed May 17, 2018
1 parent b07f8fb commit 29de9501092693498e5cef8a6b09992c92b51867
Showing with 1 addition and 1 deletion.
  1. +1 −1 psychopy/info.py
@@ -580,7 +580,7 @@ def __repr__(self):
# get keys for items matching this section label;
# use reverse-alpha order if easier to read:
revSet = ('PsychoPy', 'Window', 'Python', 'OpenGL')
sectKeys.sort(key=str.lower, reverse=bool(sect in revSet))
sectKeys.sort(reverse=bool(sect in revSet))
for k in sectKeys:
selfk = self[k] # alter a copy for display purposes
try:

0 comments on commit 29de950

Please sign in to comment.