use extended format strings for archive keys

This commit is contained in:
Mike Fährmann
2022-04-28 20:26:12 +02:00
parent 1c95530525
commit 61afa973b7
4 changed files with 5 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ import itertools
import urllib.parse
from http.cookiejar import Cookie
from email.utils import mktime_tz, parsedate_tz
from . import text, exception
from . import text, formatter, exception
def bencode(num, alphabet="0123456789"):
@@ -700,7 +700,7 @@ class DownloadArchive():
self.close = con.close
self.cursor = con.cursor()
self.keygen = format_string.format_map
self.keygen = formatter.parse(format_string).format_map
self._cache_key = cache_key
try: