diff options
| author | 2019-08-04 17:53:04 -0400 | |
|---|---|---|
| committer | 2019-08-04 17:53:04 -0400 | |
| commit | 09e19cd4b63183a3cc38cea7bc5c5b8d308d22fa (patch) | |
| tree | 2ef7e5afcc539bf5ca7fc2a0c525709b41e309d7 /gallery_dl/text.py | |
| parent | 1d18be9fc5a9d6577eb1bbb5f9a135bfa0ce0495 (diff) | |
| parent | 64ad8e7bd15df71ab1116eede414558631bcad32 (diff) | |
Update upstream source from tag 'upstream/1.10.1'
Update to upstream version '1.10.1'
with Debian dir 81401e5e3e324250ded90d4caf7bf60cd0b9affb
Diffstat (limited to 'gallery_dl/text.py')
| -rw-r--r-- | gallery_dl/text.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/gallery_dl/text.py b/gallery_dl/text.py index 81e87b5..72dad5b 100644 --- a/gallery_dl/text.py +++ b/gallery_dl/text.py @@ -83,22 +83,6 @@ def nameext_from_url(url, data=None): return data -def clean_path_windows(path): - """Remove illegal characters from a path-segment (Windows)""" - try: - return re.sub(r'[<>:"\\/|?*]', "_", path) - except TypeError: - return "" - - -def clean_path_posix(path): - """Remove illegal characters from a path-segment (Posix)""" - try: - return path.replace("/", "_") - except AttributeError: - return "" - - def extract(txt, begin, end, pos=0): """Extract the text between 'begin' and 'end' from 'txt' @@ -266,12 +250,6 @@ def parse_datetime(date_string, format="%Y-%m-%dT%H:%M:%S%z"): return date_string -if os.name == "nt": - clean_path = clean_path_windows -else: - clean_path = clean_path_posix - - urljoin = urllib.parse.urljoin quote = urllib.parse.quote |
