Skip to content

python3 compatibility for dir_test.py #177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 7, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
comments about 'input_func'
  • Loading branch information
HidekiHokuto committed Jun 5, 2017
commit 11e5e91f5eb5aa624c243dcc18c0c2828803a02d
4 changes: 2 additions & 2 deletions dir_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@


def main():
if sys.version_info.major >= 3:
input_func = input
if sys.version_info.major >= 3: # if the interpreter version is 3.X, use 'input',
input_func = input # otherwise use 'raw_input'
else:
input_func = raw_input

Expand Down