diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2012-05-30 10:57:15 +0200 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2012-05-30 10:57:15 +0200 |
commit | 8ce99000b498fa02099eb148f22c328b5ab12e02 (patch) | |
tree | 79b0e76b799b15a029a409f260c146bf1308b013 /testsuite/E12.py | |
parent | 73566688362192418b646009b32b801cab5fe506 (diff) | |
download | pep8-8ce99000b498fa02099eb148f22c328b5ab12e02.tar.gz |
Chase some false positive indentation errors.
Diffstat (limited to 'testsuite/E12.py')
-rw-r--r-- | testsuite/E12.py | 56 |
1 files changed, 52 insertions, 4 deletions
diff --git a/testsuite/E12.py b/testsuite/E12.py index 80bd446..7998d4c 100644 --- a/testsuite/E12.py +++ b/testsuite/E12.py @@ -171,10 +171,6 @@ if foo is None and bar is "frop" and \ #: Okay """This is a multi-line docstring.""" -##: E502 -#if (foo is None and bar is "e127" and \ -# blah == 'yeah'): -# blah = 'yeahnah' #: Okay if blah: # is this actually readable? :) @@ -247,3 +243,55 @@ event_obj.write(cursor, user_id, { 'bbb': 2 }}, }) +##: E126 +# +# +#def qualify_by_address(self, cr, uid, ids, context=None, +# params_to_check=frozenset(QUALIF_BY_ADDRESS_PARAM)): +# """ This gets called by the web server """ +#: E123 + + +def qualify_by_address( + self, cr, uid, ids, context=None, + params_to_check=frozenset(QUALIF_BY_ADDRESS_PARAM)): + """ This gets called by the web server """ +#: Okay + + +def qualify_by_address( + self, cr, uid, ids, context=None, + params_to_check=frozenset(QUALIF_BY_ADDRESS_PARAM)): + """ This gets called by the web server """ +#: Okay +_ipv4_re = re.compile('^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.' + '(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.' + '(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.' + '(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$') + +# +fct(""" + AAA """ + status_2_string) + +# +if context: + msg = """\ +action: GET-CONFIG +payload: + ip_address: "%(ip)s" + username: "%(username)s" +""" % context + +# +if context: + msg = """\ +action: \ +GET-CONFIG +""" % context +# +if context: + msg = """\ +action: """\ +"""GET-CONFIG +""" % context +#: |