Bug 8112 - pyobfuscate does not support typing
Summary: pyobfuscate does not support typing
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Build system (show other bugs)
Version: 4.14.0
Hardware: PC Unknown
: P2 Normal
Target Milestone: MediumPrio
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-07 12:57 CET by Frida Flodin
Modified: 2023-03-07 13:23 CET (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Frida Flodin cendio 2023-03-07 12:57:55 CET
In Python 3.5 typing module was added and type hinting is now supported. Right now our code still need to support Python 3.4, so this is not a problem in reality yet, but its going to be. When doing some tests, I added this into a file that will be obfuscated:

>    def greeting(name: str) -> str:
>        return 'Hello ' + name

The build passed without any sign that something went wrong. But the installed file (the one I modified) was empty. I tested to manually run pyobfuscate3-install and I got:

> Traceback (most recent call last):
>   File "/usr/bin/pyobfuscate3", line 1168, in <module>
>     main()
>   File "/usr/bin/pyobfuscate3", line 1155, in main
>     ce = ColumnExtractor(source, cw.names)
>   File "/usr/bin/pyobfuscate3", line 812, in __init__
>     self.parse(f)
>   File "/usr/bin/pyobfuscate3", line 852, in parse
>     if occurancelist[seen_times]:
> IndexError: list index out of range

Note You need to log in before you can comment on or make changes to this bug.