Skip to content

Commit 5f91a2a

Browse files
author
cclauss
authored
Define raw_input for Python 3
1 parent 8da9225 commit 5f91a2a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sc2reader/scripts/sc2attributes.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838

3939
import sc2reader
4040

41+
try:
42+
raw_input # Python 2
43+
except NameError:
44+
raw_input = input # Python 3
45+
4146
decisions = dict()
4247

4348

0 commit comments

Comments
 (0)