Skip to content

import random to access random.randint()#327

Closed
cclauss wants to merge 1 commit into
TheAlgorithms:masterfrom
cclauss:patch-3
Closed

import random to access random.randint()#327
cclauss wants to merge 1 commit into
TheAlgorithms:masterfrom
cclauss:patch-3

Conversation

@cclauss
Copy link
Copy Markdown
Member

@cclauss cclauss commented Jul 21, 2018

These kind of errors should be automatically detected by #218

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

$ 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.6.3

$ __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
```
@cclauss
Copy link
Copy Markdown
Member Author

cclauss commented Sep 22, 2018

Bump on this one.

@AnshulMalik
Copy link
Copy Markdown
Member

AnshulMalik commented Sep 28, 2018

Dupe of #339

@cclauss cclauss deleted the patch-3 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