From bad741e00ff86eda7fc076f8eda38c174636017a Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Thu, 25 Apr 2024 01:12:50 -0400 Subject: [PATCH 1/2] Update underscore.py In newer versions of Python (3.11), you can't set the global flags at positions other than the start of an expression. Relocate the flag to the beginning of the regex. --- src/markey/underscore.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/markey/underscore.py b/src/markey/underscore.py index 9535e27..0e21e7a 100644 --- a/src/markey/underscore.py +++ b/src/markey/underscore.py @@ -47,8 +47,8 @@ 'function_call': ruleset( rule(',', 'func_argument_delimiter'), rule('\s+', None), - rule(r"('([^'\\]*(?:\\.[^'\\]*)*)'|" - r'"([^"\\]*(?:\\.[^"\\]*)*)")(?s)', 'func_string_arg'), + rule(r"(?s)('([^'\\]*(?:\\.[^'\\]*)*)'|" + r'"([^"\\]*(?:\\.[^"\\]*)*)")', 'func_string_arg'), rule(r'([\w_]+)\s*=', bygroups('func_kwarg')) ) } From 430e1e6e953c0923fcdbe61358a0277a5033c5ec Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Thu, 25 Apr 2024 01:14:42 -0400 Subject: [PATCH 2/2] Bump the version and update classifiers --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 78336b4..6cb3a3c 100755 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ from setuptools.command.test import test as TestCommand -version = '0.8' +version = '0.9' def read(*parts): @@ -78,6 +78,8 @@ def read(*parts): 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: Implementation :: PyPy', 'Programming Language :: Python :: Implementation :: CPython', ],