[Python-apps-team] Bug#846599: SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2132-2133

Daniel Stender debian at danielstender.com
Fri Dec 2 13:39:26 UTC 2016


Package: pydocstyle
Version: 1.0.0-3
Severity: normal

There is a SyntaxError affecting both scripts, "pydocstyle" as "pep257":

<cut>
~$ pep257
Deprecation Warning:
pep257 has been renamed to pydocstyle and the use of the pep257 executable is deprecated and will be removed in the next major version. Please use `pydocstyle` instead.
Traceback (most recent call last):
  File "/usr/bin/pep257", line 9, in <module>
    load_entry_point('pydocstyle==1.0.0', 'console_scripts', 'pep257')()
  File "/usr/lib/python3/dist-packages/pydocstyle.py", line 1674, in main_pep257
    main(use_pep257=True)
  File "/usr/lib/python3/dist-packages/pydocstyle.py", line 1668, in main
    sys.exit(run_pydocstyle(use_pep257))
  File "/usr/lib/python3/dist-packages/pydocstyle.py", line 1321, in run_pydocstyle
    errors.extend(check((filename,), select=checked_codes))
  File "/usr/lib/python3/dist-packages/pydocstyle.py", line 1258, in check
    for error in PEP257Checker().check_source(source, filename):
  File "/usr/lib/python3/dist-packages/pydocstyle.py", line 1364, in check_source
    error = check(None, definition, definition.docstring)
  File "/usr/lib/python3/dist-packages/pydocstyle.py", line 1400, in check_docstring_missing
    docstring and is_blank(ast.literal_eval(docstring))):
  File "/usr/lib/python3.5/ast.py", line 46, in literal_eval
    node_or_string = parse(node_or_string, mode='eval')
  File "/usr/lib/python3.5/ast.py", line 35, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 56
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2132-2133: truncated \uXXXX escape
</cut>

DS

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages pydocstyle depends on:
pn  python3:any  <none>

pydocstyle recommends no packages.

pydocstyle suggests no packages.

-- no debconf information



More information about the Python-apps-team mailing list