From 59529569dc83ec776d299b1e4651a53edb68d907 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Wed, 3 Aug 2016 13:54:14 -0400 Subject: [PATCH] reorder imports --- util/registry/torrent.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/util/registry/torrent.py b/util/registry/torrent.py index d81caa162..ec93e1405 100644 --- a/util/registry/torrent.py +++ b/util/registry/torrent.py @@ -1,12 +1,13 @@ -import bencode import hashlib -import jwt -import resumablehashlib import time import urllib from cachetools import lru_cache +import bencode +import jwt +import resumablehashlib + from app import app, instance_keys @@ -14,6 +15,7 @@ ANNOUNCE_URL = app.config['BITTORRENT_ANNOUNCE_URL'] FILENAME_PEPPER = app.config['BITTORRENT_FILENAME_PEPPER'] REGISTRY_TITLE = app.config['REGISTRY_TITLE'] + @lru_cache(maxsize=1) def _load_private_key(private_key_file_path): with open(private_key_file_path) as private_key_file: