diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-12-24 08:59:21 -0500 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-12-24 09:38:48 -0500 |
commit | 4f5c0933a0dce78641c097a8a060dfc103fef4b7 (patch) | |
tree | f420a7400fcd664e4cce5312f5a4690b9fedd921 /examples/stateMachine2.py | |
parent | 40deba322583925ad62d0afe2333b9301964ab69 (diff) | |
download | pyparsing-git-4f5c0933a0dce78641c097a8a060dfc103fef4b7.tar.gz |
Remove unused imports throughout project
Unused imports were discovered using flake8. By removing the unused
imports, the code is a bit friendlier to new contributors as it is
clearer what is being used and not simply leftover from previous
refactoring.
The flake8 command:
$ flake8 . --select F401
http://flake8.pycqa.org/
Diffstat (limited to 'examples/stateMachine2.py')
-rw-r--r-- | examples/stateMachine2.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/examples/stateMachine2.py b/examples/stateMachine2.py index 21e0545..a156f6c 100644 --- a/examples/stateMachine2.py +++ b/examples/stateMachine2.py @@ -2,7 +2,6 @@ #
# module to define .pystate import handler
#
-#import imputil
import sys
import os
import types
@@ -10,11 +9,9 @@ import urllib.parse DEBUG = False
-from pyparsing import Word, Group, ZeroOrMore, alphas, \
- alphanums, ParserElement, ParseException, ParseSyntaxException, \
- Empty, LineEnd, OneOrMore, col, Keyword, pythonStyleComment, \
- StringEnd, traceParseAction
-
+from pyparsing import Word, Group, alphas, \
+ alphanums, ParseException, \
+ OneOrMore, col, Keyword, pythonStyleComment
ident = Word(alphas+"_", alphanums+"_$")
|