Skip to content

Commit

Permalink
simpler py2/py3 input in clibot example
Browse files Browse the repository at this point in the history
  • Loading branch information
rahiel committed Apr 28, 2016
1 parent 474d5f0 commit 73c60ee
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples/clibot.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
from time import sleep
import logging

from future.builtins import input

# Enable Logging
logging.basicConfig(
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
Expand Down Expand Up @@ -153,10 +155,7 @@ def main():

# Start CLI-Loop
while True:
try:
text = raw_input()
except NameError:
text = input()
text = input()

# Gracefully stop the event handler
if text == 'stop':
Expand Down

0 comments on commit 73c60ee

Please sign in to comment.