commit | 0442d9062a9d4484b6441b71c3c5e3e077e7985e | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Sat May 25 16:12:24 2019 -0400 |
committer | Behdad Esfahbod <behdad@behdad.org> | Sat May 25 16:12:24 2019 -0400 |
tree | b5085009f9cc353e78c70336d3a15c6aea4665f6 | |
parent | 5045fb720c6308edfb16d2d864096fe9c51a5899 [diff] |
Improve allEqual
diff --git a/Lib/fontTools/varLib/models.py b/Lib/fontTools/varLib/models.py index 9a990b7..3195319 100644 --- a/Lib/fontTools/varLib/models.py +++ b/Lib/fontTools/varLib/models.py
@@ -25,7 +25,10 @@ if not lst: return True it = iter(lst) - first = next(it) + try: + first = next(it) + except StopIteration: + return True return allEqualTo(first, it, mapper=mapper) def subList(truth, lst):