Skip to content

Commit

Permalink
Undefined name: from six.moves import raw_input
Browse files Browse the repository at this point in the history
__raw_input()__ was removed in Python 3 in favor of a rewritten version of __input()__.

[flake8](http://flake8.pycqa.org) testing of https://github.com/fedora-infra/datanommer on Python 3.7.1

$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./tools/active-contrib.py:42:16: F821 undefined name 'raw_input'
    username = raw_input("FAS username: ")
               ^
./tools/gource/datanommer2gitlog.py:85:16: F821 undefined name 'cmp'
        return cmp(a['timestamp'], b['timestamp'])
               ^
2     F821 undefined name 'raw_input'
2
```
  • Loading branch information
cclauss committed Oct 29, 2018
1 parent 2b93747 commit f5577fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/active-contrib.py
Expand Up @@ -36,6 +36,8 @@
import getpass
import pprint

from six.moves import raw_input


def prompt_creds():
print("I need to query FAS to get the list of packagers..")
Expand Down

0 comments on commit f5577fe

Please sign in to comment.