Skip to content

Commit b24a0f3

Browse files
committed
Remove duplicate --version option
1 parent e847eb1 commit b24a0f3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

uncompyle6/bin/uncompile.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ def usage():
131131
default=0,
132132
help="start decomplation at offset; default is 0 or the starting offset.",
133133
)
134-
@click.version_option(version=__version__)
135134
@click.option(
136135
"--stop-offset",
137136
"stop_offset",

uncompyle6/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,9 @@ def main(
302302
for source_path in source_files:
303303
compiled_files.append(compile_file(source_path))
304304

305+
if len(compiled_files) == 0:
306+
return 0, 0, 0, 0
307+
305308
for filename in compiled_files:
306309
infile = osp.join(in_base, filename)
307310
# print("XXX", infile)

0 commit comments

Comments
 (0)