Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obfuscation breaks try ... import #130

Open
liam-ly opened this issue Sep 3, 2021 · 0 comments
Open

Obfuscation breaks try ... import #130

liam-ly opened this issue Sep 3, 2021 · 0 comments

Comments

@liam-ly
Copy link

liam-ly commented Sep 3, 2021

The following file

# -*- coding: utf-8 -*-
"""Compatibility layer for optional functionality."""


def _tqdm(it, *_args, **_kwargs):  # noqa
    return it


try:
    from tqdm.auto import tqdm
except ImportError:
    tqdm = _tqdm


__all__ = ["tqdm"]

incorrectly obfuscates to

def R(it,*_args,**_kwargs): 
u=ImportError
 return it
try:
 from tqdm.auto import tqdm
except u:
 w=R
__all__=["tqdm"]
# Created by pyminifier (https://github.com/liftoff/pyminifier)

The exception renaming should be outside of the def R

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant