From 5aadd4719938c87b96bdab95d5bdd71b8de214f1 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 1 Dec 2020 23:20:44 +0100 Subject: [PATCH] dodge python-bug #7980 --- bin/copyparty-fuse.py | 1 + bin/copyparty-fuseb.py | 2 ++ copyparty/__main__.py | 2 ++ 3 files changed, 5 insertions(+) diff --git a/bin/copyparty-fuse.py b/bin/copyparty-fuse.py index 38ec030f..9f117794 100755 --- a/bin/copyparty-fuse.py +++ b/bin/copyparty-fuse.py @@ -906,6 +906,7 @@ class TheArgparseFormatter( def main(): global info, log, dbg + time.strptime("19970815", "%Y%m%d") # python#7980 # filecache helps for reads that are ~64k or smaller; # linux generally does 128k so the cache is a slowdown, diff --git a/bin/copyparty-fuseb.py b/bin/copyparty-fuseb.py index 11769090..650038a5 100755 --- a/bin/copyparty-fuseb.py +++ b/bin/copyparty-fuseb.py @@ -567,6 +567,8 @@ class CPPF(Fuse): def main(): + time.strptime("19970815", "%Y%m%d") # python#7980 + server = CPPF() server.parser.add_option(mountopt="url", metavar="BASE_URL", default=None) server.parse(values=server, errex=1) diff --git a/copyparty/__main__.py b/copyparty/__main__.py index e346ac18..d4d5b786 100644 --- a/copyparty/__main__.py +++ b/copyparty/__main__.py @@ -9,6 +9,7 @@ __license__ = "MIT" __url__ = "https://github.com/9001/copyparty/" import os +import time import shutil import filecmp import locale @@ -85,6 +86,7 @@ def ensure_cert(): def main(): + time.strptime("19970815", "%Y%m%d") # python#7980 if WINDOWS: os.system("") # enables colors