Skip to content

Commit 29de950

Browse files
committed
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
1 parent b07f8fb commit 29de950

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

psychopy/info.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def __repr__(self):
580580
# get keys for items matching this section label;
581581
# use reverse-alpha order if easier to read:
582582
revSet = ('PsychoPy', 'Window', 'Python', 'OpenGL')
583-
sectKeys.sort(key=str.lower, reverse=bool(sect in revSet))
583+
sectKeys.sort(reverse=bool(sect in revSet))
584584
for k in sectKeys:
585585
selfk = self[k] # alter a copy for display purposes
586586
try:

0 commit comments

Comments
 (0)