Commits

Vinay Sajip  committed 3e5b13c

Adjusted regular expression.

  • Participants
  • Parent commits 258fbf7

Comments (0)

Files changed (1)

File distlib/version.py

         return self._string
 
 
-PEP426_VERSION_RE = re.compile('^(\d+\.\d+(\.\d+)*)((a|b|c|rc)(\d+))?'
-                               '(\.(post)(\d+))?(\.(dev)(\d+))?$')
+PEP426_VERSION_RE = re.compile(r'^(\d+\.\d+(\.\d+)*)((a|b|c|rc)(\d+))?'
+                               r'(\.(post)(\d+))?(\.(dev)(\d+))?$')
 
 
 def _pep426_key(s):