]> arthur.barton.de Git - bup.git/commitdiff
timespec_to_nsecs(): don't destructure arguments
authorRob Browning <rlb@defaultvalue.org>
Sun, 24 Jun 2018 20:44:48 +0000 (15:44 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 7 Jul 2018 17:38:32 +0000 (12:38 -0500)
Python 3 doesn't allow it.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/xstat.py

index 077020213f4378b6d816b3315cace6f78f05c043..3ba7b96cf74f7e37dccd41cdcc64b6aa48bef4df 100644 (file)
@@ -21,7 +21,8 @@ except AttributeError as e:
     _bup_lutimes = False
 
 
-def timespec_to_nsecs((ts_s, ts_ns)):
+def timespec_to_nsecs(ts):
+    ts_s, ts_ns = ts
     return ts_s * 10**9 + ts_ns