#28628: Audit for and abolish all use of '\d' in regexes
-------------------------------------+-------------------------------------
     Reporter:  James Bennett        |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Documentation        |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by James Bennett):

 A few more:

 {{{
 tests/gis_tests/geo3d/tests.py:218:        ref_kml_regex =
 
re.compile(r'^<Point><coordinates>-95.363\d+,29.763\d+,18</coordinates></Point>$')
 tests/gis_tests/geoapp/test_functions.py:108:
 r'<gml:coordinates decimal="\." cs="," ts=" ">-104.60925\d+,38.25500\d+ '
 tests/gis_tests/geoapp/test_functions.py:114:
 r'-104\.60925\d+,38\.255001</gml:coordinates></gml:Point>'
 tests/i18n/test_extraction.py:100:        (or `#: .\dirA\dirB\foo.py:42`
 on Windows)
 tests/i18n/tests.py:524:            self.assertEqual(r'j \d\e F \d\e Y',
 get_format('DATE_FORMAT'))
 tests/logging_tests/tests.py:527:
 self.assertRegex(logger_output.getvalue(), r'^\[[-:,.\s\d]+\] %s' %
 log_msg)
 tests/sitemaps_tests/urls/http.py:198:
 url(r'^i18n/testmodel/(?P<id>\d+)/$', testmodelview,
 name='i18n_testmodel'),
 tests/urlpatterns_reverse/urls.py:28:
 url(r'^optional/(?P<arg1>\d+)/(?:(?P<arg2>\d+)/)?', absolute_kwargs_view,
 name="named_optional"),
 tests/urlpatterns_reverse/urls.py:29:
 url(r'^optional/(?P<arg1>\d+)/(?:(?P<arg2>\d+)/)?$', absolute_kwargs_view,
 name="named_optional_terminated"),
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28628#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.773f0d1b616a10cd80835e35e8167a3a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to