#33063: Use string module instead of writing all of characters
------------------------------------------------+------------------------
               Reporter:  sammiee5311           |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  Utilities             |        Version:  3.2
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 From

 {{{
 #!div style="font-size: 80%"
 Code highlighting:
   {{{#!python
   RANDOM_STRING_CHARS =
 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
   }}}
 }}}

 To
 {{{
 #!div style="font-size: 80%"
 Code highlighting:
   {{{#!python
   RANDOM_STRING_CHARS = string.ascii_letters + string.digits
   }}}
 }}}

 It looks more clean with string module than writing all characters.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33063>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/054.54718eca1ea2c816bd94a3bd6ca423e6%40djangoproject.com.

Reply via email to