dodge python-bug #7980

This commit is contained in:
ed 2020-12-01 23:20:44 +01:00
parent 7d9057cc62
commit 5aadd47199
3 changed files with 5 additions and 0 deletions

View file

@ -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,

View file

@ -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)

View file

@ -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