diff options
Diffstat (limited to 'lbup')
-rw-r--r-- | lbup/_path.py | 4 |
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): |