Ganesh Murthy created DISPATCH-1649:
---------------------------------------

             Summary: Tox failure, Python Checker error in config.py
                 Key: DISPATCH-1649
                 URL: https://issues.apache.org/jira/browse/DISPATCH-1649
             Project: Qpid Dispatch
          Issue Type: Bug
          Components: Management Agent
    Affects Versions: 1.12.0
            Reporter: Ganesh Murthy


{noformat}
st 67
      Start 67: python-checker

67: Test command: /usr/local/bin/tox
67: Test timeout computed to be: 600
67: py27 create: /foo/qpid-dispatch/build/tests/.tox/py27
67: py27 installdeps: hacking>=1.1.0
67: WARNING: Discarding $PYTHONPATH from environment, to override specify 
PYTHONPATH in 'passenv' in your configuration.
67: py27 installed: DEPRECATION: Python 2.7 reached the end of its life on 
January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer 
maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More 
details about Python 2 support in pip, can be found at 
https://pip.pypa.io/en/latest/development/release-process/#python-2-support,configparser==4.0.2,contextlib2==0.6.0.post1,enum34==1.1.10,flake8==3.8.1,functools32==3.2.3.post2,hacking==2.0.0,importlib-metadata==1.6.0,mccabe==0.6.1,pathlib2==2.3.5,pycodestyle==2.6.0,pyflakes==2.2.0,qpid-dispatch===1.13.0-SNAPSHOT,scandir==1.10.0,six==1.14.0,typing==3.7.4.1,zipp==1.2.0
67: py27 run-test-pre: PYTHONHASHSEED='1454137866'
67: py27 run-test: commands[0] | flake8 --count --show-source 
/foo/qpid-dispatch/python /foo/qpid-dispatch/console /foo/qpid-dispatch/docs 
/foo/qpid-dispatch/tests /foo/qpid-dispatch/tools 
/foo/qpid-dispatch/tools/qdstat /foo/qpid-dispatch/tools/qdmanage 
--ignore=E111,E114,E121,E122,E123,E124,E126,E127,E128,E129,E131,E201,E202,E203,E211,E221,E222,E225,E226,E228,E231,E241,E251,E261,E266,E265,E271,E272,E301,E302,E303,E305,E306,E401,E402,E501,E502,E701,E702,E703,E704,E711,E712,E713,E714,E731,E722,F401,F403,F405,F811,F841,H101,H102,H104,H201,H202,H234,H237,H238,H301,H306,H401,H403,H404,H405,W291,W292,W293,W391,W503,W504
67: 
/foo/qpid-dispatch/python/qpid_dispatch_internal/management/config.py:107:49: 
E741 ambiguous variable name 'l'
67:         js_text = "[%s]"%("\n".join([sub(l) for l in lines]))
67:                                                 ^
67: 
/foo/qpid-dispatch/python/qpid_dispatch_internal/management/config.py:122:47: 
E741 ambiguous variable name 'l'
67:         js_text = "%s"%("\n".join([sub(l) for l in lines]))
67:                                               ^
67: 
/foo/qpid-dispatch/python/qpid_dispatch_internal/management/config.py:182:9: 
E741 ambiguous variable name 'l'
67:     for l in config.by_type('log'):
67:         ^
67: /foo/qpid-dispatch/tests/system_test.py:378:26: E741 ambiguous variable 
name 'l'
67:             def sub_elem(l, level):
67:                          ^
67: /foo/qpid-dispatch/tests/system_test.py:407:30: E741 ambiguous variable 
name 'l'
67:         default_log = [l for l in config if (l[0] == 'log' and 
l[1]['module'] == 'DEFAULT')]
67:                              ^
67: /foo/qpid-dispatch/tests/system_test.py:466:13: E741 ambiguous variable 
name 'l'
67:         for l in self.config.sections('listener'):
67:             ^
67: /foo/qpid-dispatch/tests/system_test.py:477:31: E741 ambiguous variable 
name 'l'
67:         return [l['port'] for l in self.config.sections('listener')]
67:                               ^
67: /foo/qpid-dispatch/tests/system_test.py:493:60: E741 ambiguous variable 
name 'l'
67:         return ["amqp://%s" % self._cfg_2_host_port(l) for l in cfg]
67:                                                            ^
67: /foo/qpid-dispatch/tests/system_test.py:504:46: E741 ambiguous variable 
name 'l'
67:         return [self._cfg_2_host_port(l) for l in 
self.config.sections('listener')]
67:                                              ^
67: /foo/qpid-dispatch/tests/system_tests_edge_router.py:1653:28: E741 
ambiguous variable name 'l'
67:             lines = [l for l in inta_log.read().split("\n")
67:                            ^
67: /foo/qpid-dispatch/tests/system_tests_edge_router.py:1666:17: E741 
ambiguous variable name 'l'
67:             for l in lines:
67:                 ^
67: /foo/qpid-dispatch/tests/system_tests_edge_router.py:1682:17: E741 
ambiguous variable name 'l'
67:             for l in lines:
67:                 ^
67: /foo/qpid-dispatch/tests/system_tests_edge_router.py:1794:29: E741 
ambiguous variable name 'l'
67:         test_links = [l for l in ll if
67:                             ^
67: /foo/qpid-dispatch/tests/system_tests_management.py:204:13: E741 ambiguous 
variable name 'l'
67:         for l in response.get_dicts():
67:             ^
67: /foo/qpid-dispatch/tests/system_tests_management.py:363:25: E741 ambiguous 
variable name 'l'
67:         mylink = [l for l in response.get_dicts()
67:                         ^
67: /foo/qpid-dispatch/tools/scraper/log_splitter.py:484:21: E741 ambiguous 
variable name 'l'
67:                 for l in c.lines:
67:                     ^
67: 16 {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to