Skip to content

Commit

Permalink
docs: minor update for Python3
Browse files Browse the repository at this point in the history
raw_input was renamed to input for Python3.
  • Loading branch information
paulsmith authored Jun 18, 2020
1 parent 83c5b91 commit 33f7a57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/ply.rst
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ it can continue to parse. Here is an example of how this works::
# EOF handling rule
def t_eof(t):
# Get more input (Example)
more = raw_input('... ')
more = input('... ')
if more:
self.lexer.input(more)
return self.lexer.token()
Expand Down Expand Up @@ -1318,7 +1318,7 @@ as previously described. Here is how you would do it with
while True:
try:
s = raw_input('calc > ')
s = input('calc > ')
except EOFError:
break
if not s: continue
Expand Down

0 comments on commit 33f7a57

Please sign in to comment.