Skip to content

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Aug 21, 2018

sys.maxsize is accessed on line 31 but sys is not imported.

flake8 testing of https://github.com/donnemartin/interactive-coding-challenges on Python 3.7.0

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

./stacks_queues/stack_min/test_stack_min.py:30:39: F821 undefined name 'sys'
        assert_equal(stack.minimum(), sys.maxsize)
                                      ^

__sys.maxsize__ is accessed on line 31 but __sys__ is not imported.
@donnemartin donnemartin changed the title Undefined name: import sys for access to sys.maxsize Fix missing sys import Sep 8, 2018
@donnemartin donnemartin merged commit fe227a3 into donnemartin:master Sep 8, 2018
@donnemartin
Copy link
Owner

@cclauss thank you!

@cclauss cclauss deleted the patch-1 branch September 8, 2018 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants