mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-04 21:01:36 +00:00
Keep pylint happy (#1008)
This commit is contained in:
@@ -57,8 +57,6 @@ from urllib.parse import urlencode, urlparse
|
|||||||
from passlib.hash import sha512_crypt
|
from passlib.hash import sha512_crypt
|
||||||
import dateutil.parser
|
import dateutil.parser
|
||||||
|
|
||||||
if platform.system() == 'Linux':
|
|
||||||
import distro
|
|
||||||
import googleapiclient
|
import googleapiclient
|
||||||
import googleapiclient.discovery
|
import googleapiclient.discovery
|
||||||
import googleapiclient.errors
|
import googleapiclient.errors
|
||||||
@@ -72,6 +70,9 @@ import httplib2
|
|||||||
import utils
|
import utils
|
||||||
from var import *
|
from var import *
|
||||||
|
|
||||||
|
if platform.system() == 'Linux':
|
||||||
|
import distro
|
||||||
|
|
||||||
# Finding path method varies between Python source, PyInstaller and StaticX
|
# Finding path method varies between Python source, PyInstaller and StaticX
|
||||||
if os.environ.get('STATICX_PROG_PATH', False):
|
if os.environ.get('STATICX_PROG_PATH', False):
|
||||||
# StaticX static executable
|
# StaticX static executable
|
||||||
|
|||||||
@@ -394,7 +394,8 @@ MACOS_CODENAMES = {
|
|||||||
15: 'Catalina'
|
15: 'Catalina'
|
||||||
}
|
}
|
||||||
|
|
||||||
_MICROSOFT_FORMATS_LIST = [{'mime': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'ext': '.docx'},
|
_MICROSOFT_FORMATS_LIST = [
|
||||||
|
{'mime': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'ext': '.docx'},
|
||||||
{'mime': 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', 'ext': '.dotx'},
|
{'mime': 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', 'ext': '.dotx'},
|
||||||
{'mime': 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'ext': '.pptx'},
|
{'mime': 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'ext': '.pptx'},
|
||||||
{'mime': 'application/vnd.openxmlformats-officedocument.presentationml.template', 'ext': '.potx'},
|
{'mime': 'application/vnd.openxmlformats-officedocument.presentationml.template', 'ext': '.potx'},
|
||||||
@@ -405,7 +406,8 @@ _MICROSOFT_FORMATS_LIST = [{'mime': 'application/vnd.openxmlformats-officedocume
|
|||||||
{'mime': 'application/vnd.ms-powerpoint', 'ext': '.ppt'},
|
{'mime': 'application/vnd.ms-powerpoint', 'ext': '.ppt'},
|
||||||
{'mime': 'application/vnd.ms-powerpoint', 'ext': '.pot'},
|
{'mime': 'application/vnd.ms-powerpoint', 'ext': '.pot'},
|
||||||
{'mime': 'application/vnd.ms-excel', 'ext': '.xls'},
|
{'mime': 'application/vnd.ms-excel', 'ext': '.xls'},
|
||||||
{'mime': 'application/vnd.ms-excel', 'ext': '.xlt'}]
|
{'mime': 'application/vnd.ms-excel', 'ext': '.xlt'}
|
||||||
|
]
|
||||||
|
|
||||||
DOCUMENT_FORMATS_MAP = {
|
DOCUMENT_FORMATS_MAP = {
|
||||||
'csv': [{'mime': 'text/csv', 'ext': '.csv'}],
|
'csv': [{'mime': 'text/csv', 'ext': '.csv'}],
|
||||||
|
|||||||
Reference in New Issue
Block a user