devtools/fill.py
changeset 11079 eba98431f705
parent 10714 8a2ec43fcf44
child 11080 245f440b814a
--- a/devtools/fill.py	Thu Jan 28 18:02:49 2016 +0100
+++ b/devtools/fill.py	Wed Jan 06 15:27:59 2016 +0100
@@ -42,6 +42,9 @@
 from cubicweb.schema import RQLConstraint
 
 def custom_range(start, stop, step):
+    if start == stop:
+        yield start
+        return
     while start < stop:
         yield start
         start += step