qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cclauss <...@git.apache.org>
Subject [GitHub] qpid-python pull request #2: Fix undefined names
Date Sun, 06 May 2018 14:20:17 GMT
GitHub user cclauss opened a pull request:

    https://github.com/apache/qpid-python/pull/2

    Fix undefined names

    $ __python2 -m flake8 --count --show-source --statistics --select=E901,E999,F821,F822,F823__
    ```
    ./qpid_tests/broker_0_10/management.py:699:16: F821 undefined name 'Empty'
            except Empty:
                   ^
    ./qpid_tests/broker_0_10/management.py:722:16: F821 undefined name 'Empty'
            except Empty:
                   ^
    ./qpid/connection08.py:338:26: F821 undefined name 'abstract'
      def encode(self, enc): abstract
                             ^
    ./qpid/connection08.py:340:32: F821 undefined name 'abstract'
      def decode(spec, dec, size): abstract
                                   ^
    ./qpid/managementdata.py:753:66: F821 undefined name 'encArgs'
          tokens = [a.decode(locale.getpreferredencoding()) for a in encArgs]
                                                                     ^
    ./qpid/spec08.py:478:14: F821 undefined name 'xmlutil'
      find_rules(xmlutil.parse(specfile), rules)
                 ^
    ./qpid/packer.py:24:22: F821 undefined name 'abstract'
      def read(self, n): abstract
                         ^
    ./qpid/packer.py:26:23: F821 undefined name 'abstract'
      def write(self, s): abstract
                          ^
    ./qpid/datatypes.py:295:15: F821 undefined name 'TypeErrror'
            raise TypeErrror("need one of hex or bytes")
                  ^
    ./qpid/debug.py:43:41: F821 undefined name 'out'
          traceback.print_stack(None, None, out)
                                            ^
    ./qpid/debug.py:46:39: F821 undefined name 'out'
        traceback.print_stack(None, None, out)
                                          ^
    ./qpid/framer.py:56:16: F821 undefined name 'SASLError'
            except SASLError, e:
                   ^
    ./qpid/framer.py:99:18: F821 undefined name 'SASLError'
              except SASLError, e:
                     ^
    ./qpid/saslmech/scram.py:48:15: F821 undefined name 'SaslException'
            raise SaslException("Server nonce does not start with client nonce")
                  ^
    ./qpid/saslmech/scram.py:90:13: F821 undefined name 'SaslException'
          raise SaslException("Server verification failed")
                ^
    ./qpid/tests/__init__.py:62:5: F821 undefined name 'fdsa'
        fdsa
        ^
    16    F821 undefined name 'abstract'
    16
    ```


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cclauss/qpid-python fix-undefined-names

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/qpid-python/pull/2.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2
    
----
commit 343afe6e4bec68c0ff02f871b2e991445e93ea16
Author: cclauss <cclauss@...>
Date:   2018-05-06T14:15:41Z

    Fix undefined names

----


---

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


Mime
View raw message