-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
define __all__ #95
define __all__ #95
Conversation
define __all__ to make sure `from .util import *` won't polute the globals
Codecov Report
@@ Coverage Diff @@
## master #95 +/- ##
==========================================
+ Coverage 84.95% 84.98% +0.02%
==========================================
Files 8 8
Lines 585 586 +1
==========================================
+ Hits 497 498 +1
Misses 88 88
Continue to review full report at Codecov.
|
This pull request fixes 3 alerts when merging ac8002f into 5680907 - view on LGTM.com fixed alerts:
|
@@ -1,6 +1,8 @@ | |||
import random | |||
import string | |||
|
|||
__all__ = ['random_string', 'quote_string'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this necessary ?
when importing everything from this module (util.py) the importer will get random_string
and quote_string
by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pull request fixes 3 alerts when merging 32959bd into d06449f - view on LGTM.com fixed alerts:
|
define all to make sure
from .util import *
won't polute the globals