From 9197b00134921108fa14cc2c7bd602847f9a736a Mon Sep 17 00:00:00 2001 From: Christian Toepfer Date: Fri, 22 Sep 2023 14:30:14 +0200 Subject: [PATCH] fix init static module_name (with pyhton 3.10.12) --- pyrobuf/parse_proto.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrobuf/parse_proto.py b/pyrobuf/parse_proto.py index 0305165..913ee4b 100644 --- a/pyrobuf/parse_proto.py +++ b/pyrobuf/parse_proto.py @@ -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() diff --git a/setup.py b/setup.py index 23f6183..f835530 100644 --- a/setup.py +++ b/setup.py @@ -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"