Skip to content

assert statement not recognized #14

Description

@FlorianLudwig

Code with assert statements gets turned into non valid python code.

$ cat test_assert.py
assert isinstance(1, int)

$ uncompyle2 test_assert.pyc
raise isinstance(1, int) or AssertionError

$ python test_assert_dis.py
Traceback (most recent call last):
File "test_assert_dis.py", line 1, in
raise isinstance(1, int) or AssertionError
TypeError: exceptions must be old-style classes or derived from BaseException, not bool

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions