__init__.py
: Remove unnecessary return variables
This commit is contained in:
parent
6baf2e55f2
commit
86c8909b0f
@ -9,12 +9,8 @@ from tja2fumen.constants import COURSE_IDS
|
||||
|
||||
|
||||
def main(argv=None):
|
||||
# NB: We want to return variables during testing, but not during CLI (or else they will be printed to stderr)
|
||||
if argv:
|
||||
return_vars = True
|
||||
else:
|
||||
if not argv:
|
||||
argv = sys.argv[1:]
|
||||
return_vars = False
|
||||
|
||||
parser = argparse.ArgumentParser(
|
||||
description="tja2fumen"
|
||||
@ -46,9 +42,6 @@ def main(argv=None):
|
||||
outputFilenames.append(outputName)
|
||||
writeFumen(outputName, fumenData)
|
||||
|
||||
if return_vars:
|
||||
return parsedSongsTJA, parsedSongsFumen, outputFilenames
|
||||
|
||||
|
||||
# NB: This entry point is necessary for the Pyinstaller executable
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
x
Reference in New Issue
Block a user