Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 387090a

Browse files
Update Lib/_pydecimal.py
Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 164bdf8 commit 387090a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/_pydecimal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6123,7 +6123,7 @@ def _convert_for_comparison(self, other, equality_op=False):
61236123
(?P<minimumwidth>\d+)?
61246124
(?P<thousands_sep>[,_])?
61256125
(?:\.
6126-
(?=\d|[,_]) # lookahead for digit or separator
6126+
(?=[\d,_]) # lookahead for digit or separator
61276127
(?P<precision>\d+)?
61286128
(?P<frac_separators>[,_])?
61296129
)?

0 commit comments

Comments
 (0)