summaryrefslogtreecommitdiff
path: root/lbup/_path.py
diff options
context:
space:
mode:
Diffstat (limited to 'lbup/_path.py')
-rw-r--r--lbup/_path.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lbup/_path.py b/lbup/_path.py
index 26c67f8..27f7072 100644
--- a/lbup/_path.py
+++ b/lbup/_path.py
@@ -2,8 +2,8 @@ class AbsPath:
_components = None
def __init__(self, path = None, components = None):
- if path is not None and components is not None:
- raise ValueError('Both path and components provided')
+ if (path is None) == (components is None):
+ raise ValueError('Exactly one of path or components must be provided')
if path is not None:
if isinstance(path, str):