summaryrefslogtreecommitdiff
path: root/ql
diff options
context:
space:
mode:
Diffstat (limited to 'ql')
-rwxr-xr-xql/console.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ql/console.py b/ql/console.py
index 0c741ca..dede956 100755
--- a/ql/console.py
+++ b/ql/console.py
@@ -22,6 +22,12 @@ class Console(object):
lineup = self.get_lineup(table)
print(lineup.info)
print()
+ # Python 2.x workaround
+ global input
+ try:
+ input = raw_input
+ except NameError:
+ pass # if raw_input is not defined (Python 3.x), ignore it
for team in lineup.teams:
Completer.install_new_completer(team.player_names)
for pair in team.pairs: