refactor: remove unused python2 code, optimize imports

This commit is contained in:
jar3b
2020-02-19 01:29:08 +03:00
parent d03aa0a78c
commit 966bec093f
21 changed files with 15 additions and 71 deletions

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
import os
import codecs
import os
from aore.config import Folders
from aore.dbutils.dbschemas import db_shemas
from aore.miscutils.exceptions import FiasException

View File

@@ -1,11 +1,8 @@
# -*- coding: utf-8 -*-
import logging
import os.path
from traceback import format_exc
import rarfile
import requests
from traceback import format_exc
from aore.config import Folders, UnrarConfig
from aore.miscutils.exceptions import FiasException

View File

@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
import re
from enum import Enum
@@ -42,8 +40,5 @@ class AoXmlTableEntry:
def close(self):
self.file_descriptor.close()
def __unicode__(self):
return "Entry for {} table {}".format(self.operation_type, self.table_name)
def __str__(self):
return "Entry for {} table {}".format(self.operation_type, self.table_name)

View File

@@ -1,7 +1,4 @@
# -*- coding: utf-8 -*-
import logging
import psycopg2
from bottle import template
@@ -66,4 +63,3 @@ class DbHandler:
self.db.execute(sql_query)
logging.info("All indexes was deleted.")

View File

@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
from pysimplesoap.client import SoapClient

View File

@@ -1,9 +1,6 @@
# -*- coding: utf-8 -*-
import logging
from os import walk, path
import psycopg2
from os import walk, path
from aore.config import DatabaseConfig
from aore.dbutils.dbimpl import DBImpl

View File

@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
from lxml import etree