diff --git a/io_mesh_ply/import_ply.py b/io_mesh_ply/import_ply.py index 2bf914422b9bd689e2fc72b4bdb1ad3867d7c1f3..915368d7ad576d2912a24f2b05041466baf46a9d 100644 --- a/io_mesh_ply/import_ply.py +++ b/io_mesh_ply/import_ply.py @@ -110,7 +110,12 @@ class ObjectSpec: self.specs = [] def load(self, format, stream): - return dict([(i.name, [i.load(format, stream) for j in range(i.count)]) for i in self.specs]) + return { + i.name: [ + i.load(format, stream) for j in range(i.count) + ] + for i in self.specs + } # Longhand for above LC """