Skip to content
Permalink
Browse files

Fix Python 3 compatibility in the irrelevant code! (#86)

  • Loading branch information...
cclauss authored and satwikkansal committed Jun 21, 2018
1 parent 07861a0 commit 2fb04501f7919fd31a425457d0cfce52519a46e5
Showing with 7 additions and 1 deletion.
  1. +7 −1 irrelevant/parse_readme.py
@@ -2,14 +2,20 @@

"""
This inefficient module would parse the README.md in the initial version of
WTFPython, and enabl me to categorize and reorder a hell lot of examples with
WTFPython, and enable me to categorize and reorder a hell lot of examples with
the help of the file `add_categories` (part of which is automatically
generated).
After the refactor, this module would not work now with necessary updates in
the code.
"""

try:
raw_input # Python 2
except NameError:
raw_input = input # Python 3


fname = "README.md"
snippets = []

0 comments on commit 2fb0450

Please sign in to comment.
You can’t perform that action at this time.