[Lxml-checkins] r44676 - lxml/trunk/src/lxml
scoder at codespeak.net
scoder at codespeak.net
Mon Jul 2 19:34:04 CEST 2007
Author: scoder
Date: Mon Jul 2 19:34:04 2007
New Revision: 44676
Modified:
lxml/trunk/src/lxml/etree.pyx
Log:
allow for a lot of alpha/beta versions :)
Modified: lxml/trunk/src/lxml/etree.pyx
==============================================================================
--- lxml/trunk/src/lxml/etree.pyx (original)
+++ lxml/trunk/src/lxml/etree.pyx Mon Jul 2 19:34:04 2007
@@ -133,16 +133,16 @@
except ValueError:
if item.startswith('dev'):
count = item[3:]
- item = -30
+ item = -300
elif item.startswith('alpha'):
count = item[5:]
- item = -20
+ item = -200
elif item.startswith('beta'):
count = item[4:]
- item = -10
+ item = -100
else:
count = 0
- if count:
+ if count.trim():
item = item + int(count)
version_list.append(item)
return tuple(version_list)
More information about the lxml-checkins
mailing list