Skip to content

Commit 183a653

Browse files
author
Matthew Barnett
committed
Git issue 584: AttributeError: 'AnyAll' object has no attribute 'positive'
1 parent 23ca191 commit 183a653

File tree

5 files changed

+14
-2
lines changed

5 files changed

+14
-2
lines changed

changelog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Version: 2025.8.29
2+
3+
Git issue 584: AttributeError: 'AnyAll' object has no attribute 'positive'
4+
15
Version: 2025.7.34
26

37
Git issue 575: Issues with ASCII/Unicode modifiers

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "regex"
7-
version = "2025.7.34"
7+
version = "2025.8.29"
88
description = "Alternative regular expression module, to replace re."
99
readme = "README.rst"
1010
authors = [

regex_3/_regex_core.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1996,6 +1996,11 @@ class AnyAll(Any):
19961996
_opcode = {False: OP.ANY_ALL, True: OP.ANY_ALL_REV}
19971997
_op_name = "ANY_ALL"
19981998

1999+
def __init__(self):
2000+
self.positive = True
2001+
self.zerowidth = False
2002+
self.case_flags = 0
2003+
19992004
class AnyU(Any):
20002005
_opcode = {False: OP.ANY_U, True: OP.ANY_U_REV}
20012006
_op_name = "ANY_U"

regex_3/regex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@
241241
"VERSION1", "X", "VERBOSE", "W", "WORD", "error", "Regex", "__version__",
242242
"__doc__", "RegexFlag"]
243243

244-
__version__ = "2.5.159"
244+
__version__ = "2.5.160"
245245

246246
# --------------------------------------------------------------------
247247
# Public interface.

regex_3/test_regex.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4402,6 +4402,9 @@ def test_hg_bugs(self):
44024402
self.assertEqual(bool(regex.match(r"\A\P{L}?\p{L}", "hello,")), True)
44034403
self.assertEqual(bool(regex.fullmatch(r"\A\P{L}*(?P<w>\p{L}+)\P{L}*\Z", "hello,")), True)
44044404

4405+
# Git issue 584: AttributeError: 'AnyAll' object has no attribute 'positive'
4406+
self.assertEqual(bool(regex.compile('(\\s|\\S)')), True)
4407+
44054408
def test_fuzzy_ext(self):
44064409
self.assertEqual(bool(regex.fullmatch(r'(?r)(?:a){e<=1:[a-z]}', 'e')),
44074410
True)

0 commit comments

Comments
 (0)