Skip to content

Commit

Permalink
Modernize for py3: raw_input -> input (and allow it in .pylintrc)
Browse files Browse the repository at this point in the history
Signed-off-by: Bernhard Kaindl <[email protected]>
  • Loading branch information
bernhardkaindl committed Nov 8, 2023
1 parent 8fa1ea3 commit 6c03e32
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ enable=c-extension-no-member,
hex-method,
nonzero-method,
cmp-method,
input-builtin,
round-builtin,
intern-builtin,
unichr-builtin,
Expand Down
2 changes: 1 addition & 1 deletion xen-bugtool
Original file line number Diff line number Diff line change
Expand Up @@ -1959,7 +1959,7 @@ def prettyDict(d):


def yes(prompt):
yn = raw_input(prompt)
yn = input(prompt)

return len(yn) == 0 or yn.lower()[0] == 'y'

Expand Down

0 comments on commit 6c03e32

Please sign in to comment.