You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
11 lines
260 B
Python
11 lines
260 B
Python
# From python 3.3.7 trace
|
|
# Bug was not having not having semantic rule for conditional not
|
|
|
|
# RUNNABLE!
|
|
def init(modules=None):
|
|
mods = set() if not modules else set(modules)
|
|
return mods
|
|
|
|
assert init() == set()
|
|
assert init([1, 2, 3]) == set([1, 2, 3])
|