From: Rob Browning Date: Sun, 24 Jun 2018 20:44:48 +0000 (-0500) Subject: timespec_to_nsecs(): don't destructure arguments X-Git-Tag: 0.30~74 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=commitdiff_plain;h=e9530e21d39aa5f19b9098d4353e00a65404f7d2 timespec_to_nsecs(): don't destructure arguments Python 3 doesn't allow it. Signed-off-by: Rob Browning Tested-by: Rob Browning --- 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