summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Smith <paulsmith@gmail.com>2020-06-18 13:12:16 -0500
committerGitHub <noreply@github.com>2020-06-18 13:12:16 -0500
commit33f7a5728a07a2f226596c2959fbb223edcc16e8 (patch)
tree6d84d68b79cbbb235f2a18c53d8757c63bce7b4d
parent83c5b91972a0905d620f3407e7d37f4cbcfe4178 (diff)
downloadply-33f7a5728a07a2f226596c2959fbb223edcc16e8.tar.gz
docs: minor update for Python3
raw_input was renamed to input for Python3.
-rw-r--r--docs/ply.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ply.rst b/docs/ply.rst
index 2167398..600ed6d 100644
--- a/docs/ply.rst
+++ b/docs/ply.rst
@@ -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()
@@ -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