From e9530e21d39aa5f19b9098d4353e00a65404f7d2 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Sun, 24 Jun 2018 15:44:48 -0500 Subject: [PATCH] timespec_to_nsecs(): don't destructure arguments Python 3 doesn't allow it. Signed-off-by: Rob Browning Tested-by: Rob Browning --- lib/bup/xstat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/bup/xstat.py b/lib/bup/xstat.py index 0770202..3ba7b96 100644 --- a/lib/bup/xstat.py +++ b/lib/bup/xstat.py @@ -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 -- 2.39.2