Skip to content

Commit 8ce6fb9

Browse files
committed
write file to urlescaped url instead of sha256 for readability
1 parent cc43dc3 commit 8ce6fb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pyff/resource.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from .fetch import make_fetcher
2121
from .logs import get_log
2222
from .parse import parse_resource
23+
from urllib.parse import quote as urlescape
2324

2425
from .utils import (
2526
Watchable,
@@ -31,7 +32,6 @@
3132
resource_string,
3233
resource_filename,
3334
safe_write,
34-
hash_id,
3535
)
3636

3737
requests.packages.urllib3.disable_warnings()
@@ -184,7 +184,7 @@ def __setstate__(self, state):
184184

185185
@property
186186
def local_copy_fn(self):
187-
return os.path.join(config.local_copy_dir, hash_id(self.url, 'sha256', False))
187+
return os.path.join(config.local_copy_dir, urlescape(self.url, True))
188188

189189
@property
190190
def post(self):

0 commit comments

Comments
 (0)