Skip to content

Commit

Permalink
wxGUI: fix menustrings generation and adjust flake8 (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrasovaa committed Apr 23, 2020
1 parent 1c7ef34 commit 1fbfd5f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion gui/wxpython/.flake8
Expand Up @@ -7,7 +7,6 @@ ignore =
E722, # do not use bare 'except'
E731, # do not assign a lambda expression, use a def
E741, # ambiguous variable name 'l'
E999, # SyntaxError: EOL while scanning string literal
F401, # 'animation.utils.getCpuCount' imported but unused
F403, # 'from gmodeler.model import *' used; unable to detect undefined names
F405, # '_' may be undefined, or defined from star imports: gmodeler.model
Expand Down
2 changes: 1 addition & 1 deletion gui/wxpython/core/menutree.py
Expand Up @@ -171,7 +171,7 @@ def PrintStrings(self, fh):
:param fh: file descriptor
"""
className = str(self.__class__).split('.', 1)[1]
className = self.__class__.__name__
fh.write('menustrings_%s = [\n' % className)
for child in self.model.root.children:
printStrings(child, fh)
Expand Down

0 comments on commit 1fbfd5f

Please sign in to comment.