summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Beazley <dave@dabeaz.com>2020-06-18 15:04:22 -0500
committerGitHub <noreply@github.com>2020-06-18 15:04:22 -0500
commita00c1c9186a99c06e07986811ae5c5ab5b5c4659 (patch)
tree6d84d68b79cbbb235f2a18c53d8757c63bce7b4d
parent83c5b91972a0905d620f3407e7d37f4cbcfe4178 (diff)
parent33f7a5728a07a2f226596c2959fbb223edcc16e8 (diff)
downloadply-a00c1c9186a99c06e07986811ae5c5ab5b5c4659.tar.gz
Merge pull request #238 from paulsmith/patch-1
docs: minor update 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