Commits

clach04  committed a288ffe

Fix stdin redirect infinite loop under Windows (CPython and Jython). Added newline at end of file (pep8).

  • Participants
  • Parent commits abd2e2a

Comments (0)

Files changed (1)

File python/pottymouth.py

     if sys.platform == 'win32':
         EOF_DESCRIPTION = 'Ctrl-Z'
 
-    while True:
-        print 'input (end with %s)>>' % EOF_DESCRIPTION
-        text = sys.stdin.read()
-        if text:
-            parse_and_print(w, text)
+    print 'input (end with %s)>>' % EOF_DESCRIPTION
+    text = sys.stdin.read()
+    if text:
+        parse_and_print(w, text)