Browse Source

Minor fix to a code comment.

pull/34/head
denarced 10 years ago
parent
commit
a6ba7c04c3
1 changed files with 1 additions and 1 deletions
  1. 2
      gooey/code_prep.py

2
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()

Loading…
Cancel
Save