Ver código fonte

storage: remove broken default parameter from isodate()

With that syntax, the default timestamp would have been from the time of
the function's definition (not invocation). But all callers are passing
an explicit timestamp anyway.
Rusty Bird 5 anos atrás
pai
commit
f0ee73e63f
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      qubes/storage/__init__.py

+ 1 - 1
qubes/storage/__init__.py

@@ -874,7 +874,7 @@ def driver_parameters(name):
     return [p for p in params if p not in ignored_params]
     return [p for p in params if p not in ignored_params]
 
 
 
 
-def isodate(seconds=time.time()):
+def isodate(seconds):
     ''' Helper method which returns an iso date '''
     ''' Helper method which returns an iso date '''
     return datetime.utcfromtimestamp(seconds).isoformat("T")
     return datetime.utcfromtimestamp(seconds).isoformat("T")