diff --git a/src/python/jw/pkg/lib/Uri.py b/src/python/jw/pkg/lib/Uri.py index 13e7d1a5..fa48245d 100644 --- a/src/python/jw/pkg/lib/Uri.py +++ b/src/python/jw/pkg/lib/Uri.py @@ -63,7 +63,7 @@ class Uri: def scheme(self) -> str: ret = self.__p.scheme if not ret: - return 'file://' + return 'file' return ret @cached_property diff --git a/test/unit/python/jw/pkg/lib/Uri/test.py b/test/unit/python/jw/pkg/lib/Uri/test.py index c88fe364..a435b8b2 100644 --- a/test/unit/python/jw/pkg/lib/Uri/test.py +++ b/test/unit/python/jw/pkg/lib/Uri/test.py @@ -19,7 +19,7 @@ assert '' in u.safe_full_with_username # safe version hides password # Scheme defaults to file u = Uri('/local/path') -assert u.scheme == 'file://' +assert u.scheme == 'file' assert u.protocol == 'file' # Pimp returns existing Uri unchanged