[Secure-testing-commits] r5785 - lib/python

Florian Weimer fw at alioth.debian.org
Sat May 5 08:58:06 UTC 2007


Author: fw
Date: 2007-05-05 08:58:05 +0000 (Sat, 05 May 2007)
New Revision: 5785

Modified:
   lib/python/debian_support.py
Log:
* lib/python/debian_support.py (PackageFile.re_field):
  Field names are not necessarily separated by a space from the
  field content.


Modified: lib/python/debian_support.py
===================================================================
--- lib/python/debian_support.py	2007-05-04 21:14:32 UTC (rev 5784)
+++ lib/python/debian_support.py	2007-05-05 08:58:05 UTC (rev 5785)
@@ -159,7 +159,7 @@
     Objects of this class can be used to read Debian's Source and
     Packages files."""
 
-    re_field = re.compile(r'^([A-Za-z][A-Za-z0-9-]+):(?:\s+(.*?))?\s*$')
+    re_field = re.compile(r'^([A-Za-z][A-Za-z0-9-]+):(?:\s*(.*?))?\s*$')
     re_continuation = re.compile(r'^\s+(?:\.|(\S.*?)\s*)$')
 
     def __init__(self, name, fileObj=None):




More information about the Secure-testing-commits mailing list