Bug 432686

Summary: Python code generator has unnecessary codec header
Product: [Applications] umbrello Reporter: patrick <patrickelectric>
Component: exporterAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 2.33.1 (KDE releases 20.12.1)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

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