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

AnshulMalik merged 1 commit into
TheAlgorithms:masterfrom
cclauss:patch-5

Conversation

@cclauss

@cclauss cclauss commented Sep 10, 2018 •

Copy link
Copy Markdown
Member

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

2 participants