[Pywikipedia-svn] SVN: [7218] trunk/pywikipedia/isbn.py

filnik at svn.wikimedia.org filnik at svn.wikimedia.org
Mon Sep 7 09:12:09 UTC 2009


Revision: 7218
Author:   filnik
Date:     2009-09-07 09:12:09 +0000 (Mon, 07 Sep 2009)

Log Message:
-----------
Bugfix by xqt, it fixes bug request: 2853381

Modified Paths:
--------------
    trunk/pywikipedia/isbn.py

Modified: trunk/pywikipedia/isbn.py
===================================================================
--- trunk/pywikipedia/isbn.py	2009-09-06 15:52:15 UTC (rev 7217)
+++ trunk/pywikipedia/isbn.py	2009-09-07 09:12:09 UTC (rev 7218)
@@ -1203,7 +1203,8 @@
             if rest.startswith(prefix):
                 result += prefix + '-'
                 rest = rest[len(prefix):]
-
+                break
+            
         # Determine the group
         for groupNumber in ranges.iterkeys():
             if rest.startswith(groupNumber):





More information about the Pywikipedia-svn mailing list