X-Git-Url: https://git.phdru.name/?p=extfs.d.git;a=blobdiff_plain;f=torrent;fp=torrent;h=1a3c2c17b302266296dc6bf1ac833d7d94bb1beb;hp=550ad72ebf9c1f459e12a5cfa7b0eccf19bb2207;hb=60a2cad054e289df4e6d25e216350f3516661462;hpb=568ab7342bd21f4392b620cab3c97f76b6710944 diff --git a/torrent b/torrent index 550ad72..1a3c2c1 100755 --- a/torrent +++ b/torrent @@ -56,7 +56,10 @@ except ImportError: if use_locale: # Get the default charset. try: - lcAll = locale.getdefaultlocale() + if sys.version_info[:2] < (3, 11): + lcAll = locale.getdefaultlocale() + else: + lcAll = [] except locale.Error as err: #print("WARNING:", err, file=sys.stderr) lcAll = []