autopep8 aggressive

autopep8 --in-place --recursive  --max-line-length=200 --aggressive --aggressive --aggressive ifcopenshell
This commit is contained in:
thorade
2017-11-06 11:06:40 +01:00
committed by Thomas Krijnen
parent 8439e5b46d
commit 6cd59aa121
9 changed files with 61 additions and 35 deletions
@@ -74,13 +74,13 @@ DEFAULTS = {
def create(filename=None, timestring=None, organization=None, creator=None,
schema_identifier=None, application_version=None, timestamp=None,
application=None, project_globalid=None, project_name=None):
d = dict(locals())
def _():
for var, value in d.items():
if value is None:
yield var, DEFAULTS.get(var, lambda *args: '')(d)
d.update(dict(_()))
return file.from_string(TEMPLATE % d)