]> rtime.felk.cvut.cz Git - jailhouse.git/blobdiff - tools/jailhouse-config-create
tools: simplify python statement
[jailhouse.git] / tools / jailhouse-config-create
index 4e61abcfc5bb604a08a57100e784e5d9fdc5c3cf..49a002e9418bb14313f05da218ba4266252d492e 100755 (executable)
@@ -373,10 +373,7 @@ class MemRegion:
         self.start = start
         self.stop = stop
         self.typestr = typestr
-        if comments is None:
-            self.comments = []
-        else:
-            self.comments = comments
+        self.comments = comments or []
 
     def __str__(self):
         return 'MemRegion: %08x-%08x : %s' % \