diff toolfactory/galaxyxml/__init__.py @ 38:a30536c100bf draft

Updated history outputs
author fubar
date Wed, 12 Aug 2020 01:43:46 -0400
parents ce2b1f8ea68d
children
line wrap: on
line diff
--- a/toolfactory/galaxyxml/__init__.py	Mon Aug 10 23:25:51 2020 -0400
+++ b/toolfactory/galaxyxml/__init__.py	Wed Aug 12 01:43:46 2020 -0400
@@ -1,5 +1,6 @@
+from builtins import object
 from builtins import str
-from builtins import object
+
 from lxml import etree
 
 
@@ -17,11 +18,7 @@
         """Recursive data sanitisation
         """
         if isinstance(data, dict):
-            return {
-                k: cls.coerce(v, kill_lists=kill_lists)
-                for k, v in list(data.items())
-                if v is not None
-            }
+            return {k: cls.coerce(v, kill_lists=kill_lists) for k, v in list(data.items()) if v is not None}
         elif isinstance(data, list):
             if kill_lists:
                 return cls.coerce(data[0])