[umbrello-devel] [umbrello] [Bug 356949] New: No encoding specified in generated python files

Ralf Habacker via KDE Bugzilla bugzilla_noreply at kde.org
Sun Dec 20 13:25:51 UTC 2015


https://bugs.kde.org/show_bug.cgi?id=356949

            Bug ID: 356949
           Summary: No encoding specified in generated python files
           Product: umbrello
           Version: 2.17.0 (KDE Applications 15.08.0)
          Platform: unspecified
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: umbrello-devel at kde.org
          Reporter: ralf.habacker at freenet.de

Python files generated by the python code generator do not include an encoding
specification, which let python 2.7 fail to parse those files.


Reproducible: Always

Steps to Reproduce:
1. start umbrello
2. load appended xmi file
3. generated python code

Actual Results:  
python interpreter 2.7 fails with the following message:
  File "/home/ralf/uml-generated-code/new_class.py", line 17
SyntaxError: Non-ASCII character '\xc3' in file
/home/ralf/uml-generated-code/new_class.py on line 18, but no encoding
declared; see http://www.python.org/peps/pep-0263.html for details


Expected Results:  
python should be able to parse generated python files.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list