Bug 1344849 - Enabled flake8 rule E201: "whitespace after '{'". r=Dexter

Removed whitespace after '{'
This commit is contained in:
djmdev 2017-03-15 18:33:48 +05:30
Родитель f55f3ce4a0
Коммит ba39c68cbb
3 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -1,5 +1,5 @@
[flake8]
# See http://pep8.readthedocs.io/en/latest/intro.html#configuration
ignore = E121, E123, E126, E129, E133, E226, E241, E242, E704, W503, E402, E128, E501, E713, E222, E201, E202, W602, E127, W601
ignore = E121, E123, E126, E129, E133, E226, E241, E242, E704, W503, E402, E128, E501, E713, E222, E202, W602, E127, W601
max-line-length = 99
filename = *.py, +.lint

Просмотреть файл

@ -45,8 +45,8 @@ def main(argv):
except histogram_tools.DefinitionException:
continue
all_histograms.update({ name: parameters })
all_histograms.update({name: parameters})
print json.dumps({ 'histograms': all_histograms})
print json.dumps({'histograms': all_histograms})
main(sys.argv[1:])

Просмотреть файл

@ -131,8 +131,8 @@ symbol that should guard C/C++ definitions associated with the histogram."""
}
table_dispatch(self.kind(), table,
lambda k: self._set_nsITelemetry_kind(k))
datasets = { 'opt-in': 'DATASET_RELEASE_CHANNEL_OPTIN',
'opt-out': 'DATASET_RELEASE_CHANNEL_OPTOUT' }
datasets = {'opt-in': 'DATASET_RELEASE_CHANNEL_OPTIN',
'opt-out': 'DATASET_RELEASE_CHANNEL_OPTOUT'}
value = definition.get('releaseChannelCollection', 'opt-in')
if not value in datasets:
raise DefinitionException, "unknown release channel collection policy for " + name