Bug 432686 - Python code generator has unnecessary codec header
Summary: Python code generator has unnecessary codec header
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: exporter (show other bugs)
Version: 2.33.1 (KDE releases 20.12.1)
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-09 12:46 UTC by patrick
Modified: 2021-02-11 13:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description patrick 2021-02-09 12:46:30 UTC
Python has no necessity of codec, by default is utf-8.
https://docs.python.org/3/howto/unicode.html

> "The default encoding for Python source code is UTF-8"


STEPS TO REPRODUCE
1. Create UML diagram
2. Export the code as Python

OBSERVED RESULT
code will have codec header


EXPECTED RESULT
code without codec header


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: arch 5.10.12-arch1-1
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15
Comment 1 patrick 2021-02-09 12:48:03 UTC
I'm working on it:
https://invent.kde.org/sdk/umbrello/-/merge_requests/20
Comment 2 patrick 2021-02-11 13:39:39 UTC
merged