ubuntu_sso/utils/__init__.py:
52: [C0103] Invalid name "qss_map" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
The name of this should be: QSS_MAP.
Also, i would change this:
if sys.platform in ('win32', 'darwin'):
from ubuntu_sso.utils import qtwisted as source
qss_map = {'win32': ':/windows.qss', 'darwin': ':/darwin.qss',
}
source.PLATFORM_QSS = qss_map[sys.platform]
else:
from ubuntu_sso.utils import linux as source
PLATFORM_QSS = source.PLATFORM_QSS
# Setting linux (fox example) as default if we don't find the
# platform as a key in the dictionary
PLATFORM_QSS = QSS_MAP.get(sys.platform, ":/linux.qss")
Hi, i found that now there are new lint errors:
ubuntu_ sso/utils/ __init_ _.py: ][A-Z0- 9_]*)|( __.*__) )$)
52: [C0103] Invalid name "qss_map" (should match (([A-Z_
The name of this should be: QSS_MAP.
Also, i would change this:
if sys.platform in ('win32', 'darwin'):
'darwin' : ':/darwin.qss', PLATFORM_ QSS = qss_map[ sys.platform]
from ubuntu_sso.utils import qtwisted as source
qss_map = {'win32': ':/windows.qss',
}
source.
else:
from ubuntu_sso.utils import linux as source
PLATFORM_QSS = source.PLATFORM_QSS
For:
QSS_MAP = dict(win32= ':/windows. qss',
darwin= ':/darwin. qss',
linux= ':/linux. qss')
# Setting linux (fox example) as default if we don't find the get(sys. platform, ":/linux.qss")
# platform as a key in the dictionary
PLATFORM_QSS = QSS_MAP.