@resource.register('hdfs://.*', priority=16)
def resource_hdfs(uri, **kwargs):
    if uri in 'hdfs://':
        uri = uri[len('hdfs://'):]

    d = re.match(hdfs_pattern, uri).groupdict()
    d = dict((k, v) for k, v in d.items() if v is not None)
    path = d.pop('path')

    kwargs.update(d)

    try:
        subtype = types_by_extension[path.split('.')[-1]]
        if '*' in path:
            subtype = Directory(subtype)
            path = path.rsplit('/', 1)[0] + '/'
    except KeyError:
        subtype = type(resource(path))

    return HDFS(subtype)(path, **kwargs)
dataset/ETHPy150Open blaze/odo/odo/backends/hdfs.py/resource_hdfs/swapped operands of `in`