urllib2 doesn't play well with '\n' when non unescaped chars used

This commit is contained in:
Miroslav Stampar
2010-12-11 21:17:54 +00:00
parent e6c66fa37c
commit 6a24048aa6
2 changed files with 6 additions and 1 deletions

View File

@@ -1724,6 +1724,8 @@ def isDBMSVersionAtLeast(version):
value = float(value.replace("<=", ""))
elif value.startswith(">"):
value = float(value.replace("<", "")) - 0.01
else:
value = float(value)
retVal = value >= version
return retVal