]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/helpers.py
Reject invalid string in --date argument
[bup.git] / lib / bup / helpers.py
index bcaec1bf2daaab2201b2df43701b4c65f00f9b5f..f1c6084e5528a18ffdefa8e0dc808f982bf607c1 100644 (file)
@@ -827,7 +827,7 @@ def parse_date_or_fatal(str, fatal):
     """Parses the given date or calls Option.fatal().
     For now we expect a string that contains a float."""
     try:
-        date = atof(str)
+        date = float(str)
     except ValueError, e:
         raise fatal('invalid date format (should be a float): %r' % e)
     else: