Bladeren bron

fix lint errors

Nick Sweeting 5 jaren geleden
bovenliggende
commit
e90cf05141
3 gewijzigde bestanden met toevoegingen van 2 en 4 verwijderingen
  1. 0 1
      archivebox/index/schema.py
  2. 1 2
      archivebox/main.py
  3. 1 1
      archivebox/search/__init__.py

+ 0 - 1
archivebox/index/schema.py

@@ -9,7 +9,6 @@ DO NOT ADD ANY NEW FEATURES TO THIS FILE, NEW CODE GOES HERE: core/models.py
 __package__ = 'archivebox.index'
 
 from pathlib import Path
-from django.db.utils import OperationalError
 
 from datetime import datetime, timedelta
 

+ 1 - 2
archivebox/main.py

@@ -69,7 +69,6 @@ from .config import (
     ANSI,
     IS_TTY,
     IN_DOCKER,
-    PYTHON_VERSION,
     USER,
     ARCHIVEBOX_BINARY,
     ONLY_NEW,
@@ -219,7 +218,7 @@ def version(quiet: bool=False,
     else:
         print('ArchiveBox v{}'.format(VERSION))
         p = platform.uname()
-        print(sys.implementation.name.title(), p.system, platform.platform(), p.machine, f'(in Docker)' if IN_DOCKER else f'(not in Docker)')
+        print(sys.implementation.name.title(), p.system, platform.platform(), p.machine, '(in Docker)' if IN_DOCKER else '(not in Docker)')
         print()
 
         print('{white}[i] Dependency versions:{reset}'.format(**ANSI))

+ 1 - 1
archivebox/search/__init__.py

@@ -106,4 +106,4 @@ def index_links(links: Union[List[Link],None], out_dir: Path=OUTPUT_DIR):
                     color='red',
                     ) 
             else:
-                write_search_index(link, texts, out_dir=out_dir)
+                write_search_index(link, texts, out_dir=out_dir)