diff --git a/pysmi/reader/url.py b/pysmi/reader/url.py index 3eea08e..0aaea18 100644 --- a/pysmi/reader/url.py +++ b/pysmi/reader/url.py @@ -34,10 +34,9 @@ class ParseResult(tuple): 'query', 'fragment', 'username', 'password', 'hostname', 'port'), mibSource + ('', '', '', None)): if k == 'scheme': - if mibSource[2].endswith('.zip') or mibSource[2].endswith('.ZIP'): - v = 'zip' - else: - v = 'file' + if not mibSource[0] or mibSource[0] == 'file': + if mibSource[2].endswith('.zip') or mibSource[2].endswith('.ZIP'): + v = 'zip' setattr(mibSource, k, v)