mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +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
|
||||||
|
|||||||
48
src/var.py
48
src/var.py
@@ -382,30 +382,32 @@ GOOGLEDOC_VALID_EXTENSIONS_MAP = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MACOS_CODENAMES = {
|
MACOS_CODENAMES = {
|
||||||
6: 'Snow Leopard',
|
6: 'Snow Leopard',
|
||||||
7: 'Lion',
|
7: 'Lion',
|
||||||
8: 'Mountain Lion',
|
8: 'Mountain Lion',
|
||||||
9: 'Mavericks',
|
9: 'Mavericks',
|
||||||
10: 'Yosemite',
|
10: 'Yosemite',
|
||||||
11: 'El Capitan',
|
11: 'El Capitan',
|
||||||
12: 'Sierra',
|
12: 'Sierra',
|
||||||
13: 'High Sierra',
|
13: 'High Sierra',
|
||||||
14: 'Mojave',
|
14: 'Mojave',
|
||||||
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.template', 'ext': '.dotx'},
|
{'mime': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'ext': '.docx'},
|
||||||
{'mime': 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'ext': '.pptx'},
|
{'mime': 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', 'ext': '.dotx'},
|
||||||
{'mime': 'application/vnd.openxmlformats-officedocument.presentationml.template', 'ext': '.potx'},
|
{'mime': 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'ext': '.pptx'},
|
||||||
{'mime': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'ext': '.xlsx'},
|
{'mime': 'application/vnd.openxmlformats-officedocument.presentationml.template', 'ext': '.potx'},
|
||||||
{'mime': 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', 'ext': '.xltx'},
|
{'mime': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'ext': '.xlsx'},
|
||||||
{'mime': 'application/msword', 'ext': '.doc'},
|
{'mime': 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', 'ext': '.xltx'},
|
||||||
{'mime': 'application/msword', 'ext': '.dot'},
|
{'mime': 'application/msword', 'ext': '.doc'},
|
||||||
{'mime': 'application/vnd.ms-powerpoint', 'ext': '.ppt'},
|
{'mime': 'application/msword', 'ext': '.dot'},
|
||||||
{'mime': 'application/vnd.ms-powerpoint', 'ext': '.pot'},
|
{'mime': 'application/vnd.ms-powerpoint', 'ext': '.ppt'},
|
||||||
{'mime': 'application/vnd.ms-excel', 'ext': '.xls'},
|
{'mime': 'application/vnd.ms-powerpoint', 'ext': '.pot'},
|
||||||
{'mime': 'application/vnd.ms-excel', 'ext': '.xlt'}]
|
{'mime': 'application/vnd.ms-excel', 'ext': '.xls'},
|
||||||
|
{'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