From a6ba7c04c31828b630127983c7ed2e44b27daf63 Mon Sep 17 00:00:00 2001 From: denarced Date: Sun, 31 Aug 2014 20:44:24 +0300 Subject: [PATCH] Minor fix to a code comment. --- gooey/code_prep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gooey/code_prep.py b/gooey/code_prep.py index 119fb13..d8b4bff 100644 --- a/gooey/code_prep.py +++ b/gooey/code_prep.py @@ -37,7 +37,7 @@ def drop_imports(code): def split_line(line): # splits an assignment statement into varname and command strings # in: "parser = ArgumentParser(description='Example Argparse Program')" - # out: "parser", "= parser = ArgumentParser(description='Example Argparse Program" + # out: "parser", "ArgumentParser(description='Example Argparse Program" # take/dropwhile used to avoid splitting on multiple '=' signs not_equal_sign = lambda x: x != '=' varname = ''.join(takewhile(not_equal_sign, line)).strip()