Skip to content

Undefined name: import random in Onepad_Cipher.py#339

Merged
AnshulMalik merged 1 commit into
TheAlgorithms:masterfrom
cclauss:patch-5
Sep 28, 2018
Merged

Undefined name: import random in Onepad_Cipher.py#339
AnshulMalik merged 1 commit into
TheAlgorithms:masterfrom
cclauss:patch-5

Conversation

@cclauss
Copy link
Copy Markdown
Member

@cclauss cclauss commented Sep 10, 2018

flake8 testing of https://github.com/TheAlgorithms/Python on Python 3.7.0

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./ciphers/Onepad_Cipher.py:11:17: F821 undefined name 'random'
            k = random.randint(1, 300)
                ^
1     F821 undefined name 'random'
1

These kind of errors should be automatically detected by #218

flake8 testing of https://github.com/TheAlgorithms/Python on Python 3.7.0

$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./ciphers/Onepad_Cipher.py:11:17: F821 undefined name 'random'
            k = random.randint(1, 300)
                ^
1     F821 undefined name 'random'
1
```
@AnshulMalik AnshulMalik merged commit 3a77380 into TheAlgorithms:master Sep 28, 2018
@cclauss cclauss deleted the patch-5 branch September 28, 2018 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants