Do not crash on empty arrays.

pull/15/head
Jussi Pakkanen 11 years ago
parent c979b8f9e7
commit ad6ba0cadf
  1. 2
      mesonconf.py

@ -49,6 +49,8 @@ class Conf:
pickle.dump(self.coredata, open(self.coredata_file, 'wb'))
def print_aligned(self, arr):
if len(arr) == 0:
return
longest_name = max((len(x[0]) for x in arr))
longest_descr = max((len(x[1]) for x in arr))
for i in arr:

Loading…
Cancel
Save