From f2df756ec9ddeec3bef3c6a176ee0fd75c42e6bf Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Sat, 20 Jan 2018 14:17:14 -0600 Subject: [PATCH] path_components: adjust exception raise for py3 Signed-off-by: Rob Browning Tested-by: Rob Browning --- lib/bup/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bup/helpers.py b/lib/bup/helpers.py index e7df232..0f3df66 100644 --- a/lib/bup/helpers.py +++ b/lib/bup/helpers.py @@ -1060,7 +1060,7 @@ def path_components(path): Example: '/home/foo' -> [('', '/'), ('home', '/home'), ('foo', '/home/foo')]""" if not path.startswith('/'): - raise Exception, 'path must start with "/": %s' % path + raise Exception('path must start with "/": %s' % path) # Since we assume path startswith('/'), we can skip the first element. result = [('', '/')] norm_path = os.path.abspath(path) -- 2.39.2