Skip to content

Commit

Permalink
fix: Fix linting errors raised by pyflakes
Browse files Browse the repository at this point in the history
  • Loading branch information
jag1g13 committed Aug 31, 2020
1 parent 5de6bc1 commit d275329
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions pycgtool/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ def main_loop():

numframes = frame.numframes - args.begin if args.end == -1 else args.end - args.begin
logger.info("Beginning analysis of {0} frames".format(numframes))
its = Progress(numframes, dowhile=main_loop, quiet=args.quiet).run()

# Run main loop with progress bar - ignore returned value
_ = Progress(numframes, dowhile=main_loop, quiet=args.quiet).run()


def main():
Expand Down Expand Up @@ -171,7 +173,8 @@ def main():
default=-1,
help="Frame number to end")

func_forms = FunctionalForms()
# Populate functional forms dictionary - ignore returned value
_ = FunctionalForms()

args = parser.parse_args()
config = Options(
Expand Down
2 changes: 1 addition & 1 deletion pycgtool/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def _inter(self, stdscr):
self._set_by_num(pos, val)
except ValueError:
errscr.addstr(0, 0, "Invalid value '{0}' for option".format(val))
errscr.addstr(1, 0, "Value has been reset".format(val))
errscr.addstr(1, 0, "Value has been reset")

text_edit_wins[pos].erase()
text_edit_wins[pos].addstr(0, 0, str(self[pos]))
Expand Down

0 comments on commit d275329

Please sign in to comment.