summaryrefslogtreecommitdiff
path: root/examples/protobuf_parser.py
diff options
context:
space:
mode:
authorHugo <hugovk@users.noreply.github.com>2018-08-21 15:40:38 +0300
committerHugo <hugovk@users.noreply.github.com>2018-08-21 15:40:38 +0300
commitc3dba1ed5f9be226044c7ffaf1cd47adcc7482f4 (patch)
tree2c0c45c153434d0c6b78c0d5e51448933f959fb8 /examples/protobuf_parser.py
parent444859662f1829f2d8068fb33cdc375427bf9b6c (diff)
downloadpyparsing-git-c3dba1ed5f9be226044c7ffaf1cd47adcc7482f4.tar.gz
Upgrade Python syntax with pyupgrade
Diffstat (limited to 'examples/protobuf_parser.py')
-rw-r--r--examples/protobuf_parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/protobuf_parser.py b/examples/protobuf_parser.py
index 04ce0d8..8f8b12d 100644
--- a/examples/protobuf_parser.py
+++ b/examples/protobuf_parser.py
@@ -17,7 +17,7 @@ LBRACE,RBRACE,LBRACK,RBRACK,LPAR,RPAR,EQ,SEMI = map(Suppress,"{}[]()=;")
kwds = """message required optional repeated enum extensions extends extend
to package service rpc returns true false option import"""
for kw in kwds.split():
- exec("%s_ = Keyword('%s')" % (kw.upper(), kw))
+ exec("{}_ = Keyword('{}')".format(kw.upper(), kw))
messageBody = Forward()