diff options
author | Michal Nowikowski <godfryd@gmail.com> | 2014-08-04 17:34:58 +0200 |
---|---|---|
committer | Michal Nowikowski <godfryd@gmail.com> | 2014-08-04 17:34:58 +0200 |
commit | 389c53b4794f9fe0f583138ae9742b316bb61a3b (patch) | |
tree | 8d4ef1e46b739de2e1da78cac936ae51c6bb1418 /checkers/variables.py | |
parent | 05126f2c2247eca98cdc8877b24f9bc6d71c5e69 (diff) | |
download | pylint-git-389c53b4794f9fe0f583138ae9742b316bb61a3b.tar.gz |
Improved comments.
--HG--
branch : fix-293
Diffstat (limited to 'checkers/variables.py')
-rw-r--r-- | checkers/variables.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/checkers/variables.py b/checkers/variables.py index 9f1c52f79..85349e684 100644 --- a/checkers/variables.py +++ b/checkers/variables.py @@ -323,8 +323,10 @@ builtins. Remember that you should avoid to define new builtins when possible.' if not isinstance(stmt, astroid.Import) and not isinstance(stmt, astroid.From): continue - imported_name = stmt.names[0][0] # this is: 'import imported_name' or 'from something import imported_name' - as_name = stmt.names[0][1] # this is: 'import imported_name as as_name' + # 'import imported_name' or 'from something import imported_name' + imported_name = stmt.names[0][0] + # 'import imported_name as as_name' + as_name = stmt.names[0][1] if isinstance(stmt, astroid.Import) or (isinstance(stmt, astroid.From) and not stmt.modname): if as_name is None: |