reorder imports
This commit is contained in:
parent
32a6c22b43
commit
59529569dc
1 changed files with 5 additions and 3 deletions
|
@ -1,12 +1,13 @@
|
||||||
import bencode
|
|
||||||
import hashlib
|
import hashlib
|
||||||
import jwt
|
|
||||||
import resumablehashlib
|
|
||||||
import time
|
import time
|
||||||
import urllib
|
import urllib
|
||||||
|
|
||||||
from cachetools import lru_cache
|
from cachetools import lru_cache
|
||||||
|
|
||||||
|
import bencode
|
||||||
|
import jwt
|
||||||
|
import resumablehashlib
|
||||||
|
|
||||||
from app import app, instance_keys
|
from app import app, instance_keys
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,6 +15,7 @@ ANNOUNCE_URL = app.config['BITTORRENT_ANNOUNCE_URL']
|
||||||
FILENAME_PEPPER = app.config['BITTORRENT_FILENAME_PEPPER']
|
FILENAME_PEPPER = app.config['BITTORRENT_FILENAME_PEPPER']
|
||||||
REGISTRY_TITLE = app.config['REGISTRY_TITLE']
|
REGISTRY_TITLE = app.config['REGISTRY_TITLE']
|
||||||
|
|
||||||
|
|
||||||
@lru_cache(maxsize=1)
|
@lru_cache(maxsize=1)
|
||||||
def _load_private_key(private_key_file_path):
|
def _load_private_key(private_key_file_path):
|
||||||
with open(private_key_file_path) as private_key_file:
|
with open(private_key_file_path) as private_key_file:
|
||||||
|
|
Reference in a new issue