X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/611a3323ea110671c5fa021e14f93b24e4a6d7b7..628654aa8c43b00472867975031923747d163aef:/sdk/python/arvados/util.py diff --git a/sdk/python/arvados/util.py b/sdk/python/arvados/util.py index a474a94550..1316f2287f 100644 --- a/sdk/python/arvados/util.py +++ b/sdk/python/arvados/util.py @@ -5,7 +5,9 @@ import re import subprocess import errno import sys -from arvados.collection import * + +import arvados +from arvados.collection import CollectionReader HEX_RE = re.compile(r'^[0-9a-fA-F]+$') @@ -349,8 +351,8 @@ def is_hex(s, *length_args): """ num_length_args = len(length_args) if num_length_args > 2: - raise ArgumentError("is_hex accepts up to 3 arguments ({} given)". - format(1 + num_length_args)) + raise errors.ArgumentError("is_hex accepts up to 3 arguments ({} given)" + .format(1 + num_length_args)) elif num_length_args == 2: good_len = (length_args[0] <= len(s) <= length_args[1]) elif num_length_args == 1: