Skip to content

Commit

Permalink
fix init static module_name (with pyhton 3.10.12)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianToepfer committed Sep 22, 2023
1 parent de28145 commit 9197b00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyrobuf/parse_proto.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ class Parser(object):
token_regex = '|'.join('(?P<%s>%s)' % pair for pair in tokens)
get_token = re.compile(token_regex).match
token_getter = {key: re.compile(val).match for key, val in tokens}
module_name = ''

def __init__(self, string):
self.string = string
self.lines = string.split('\n')
self.module_name = ''

def tokenize(self, disabled_token_types):
token_type_to_token_class = self.get_token_type_to_token_class_map()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import sys


VERSION = "0.9.3.12"
VERSION = "0.9.3.13"
HERE = os.path.dirname(os.path.abspath(__file__))
PYROBUF_DEFS_PXI = "pyrobuf_defs.pxi"
PYROBUF_LIST_PXD = "pyrobuf_list.pxd"
Expand Down

0 comments on commit 9197b00

Please sign in to comment.