Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2704)

Unified Diff: Lib/decimal.py

Issue 2439: py3k regular expressions and unicode (Closed) Base URL: http://svn.python.org/view/*checkout*/python/branches/py3k/
Patch Set: Final patch (hopefully) also adding the (?a) inline flag Created 15 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/base64.py ('k') | Lib/distutils/cygwinccompiler.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Lib/decimal.py
===================================================================
--- Lib/decimal.py (revision 65250)
+++ Lib/decimal.py (working copy)
@@ -5415,7 +5415,7 @@
# 2. For finite numbers (not infinities and NaNs) the body of the
# number between the optional sign and the optional exponent must have
# at least one decimal digit, possibly after the decimal point. The
-# lookahead expression '(?=\d|\.\d)' checks this.
+# lookahead expression '(?=[0-9]|\.[0-9])' checks this.
#
# As the flag UNICODE is not enabled here, we're explicitly avoiding any
# other meaning for \d than the numbers [0-9].
« no previous file with comments | « Lib/base64.py ('k') | Lib/distutils/cygwinccompiler.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b