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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

psychopy/info.py

Lines changed: 1 addition & 1 deletion
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)