[Python-checkins] r86261 - tracker/instances/python-dev/lib/identify_patch.py

martin.v.loewis python-checkins at python.org
Sat Nov 6 14:07:52 CET 2010


Author: martin.v.loewis
Date: Sat Nov  6 14:07:52 2010
New Revision: 86261

Log:
Stop returning tuple in error case.


Modified:
   tracker/instances/python-dev/lib/identify_patch.py

Modified: tracker/instances/python-dev/lib/identify_patch.py
==============================================================================
--- tracker/instances/python-dev/lib/identify_patch.py	(original)
+++ tracker/instances/python-dev/lib/identify_patch.py	Sat Nov  6 14:07:52 2010
@@ -7,7 +7,7 @@
     either value may become None."""
     m = re.search(r'---.* ([0-9]+)\)', patch)
     if not m:
-        return None, None
+        return None
     rev = int(m.group(1))
     return rev
 


More information about the Python-checkins mailing list