Fix spacing inconsistencies brought to light by flake8

It has many grumbles about spacing, but at least this code is
currently consistent about its departure from PEP8's spacing rules
(and closer to Qt's) for the present. We can review whether to do a
drastic spacing revolution later.

Change-Id: Ife4e8a5b02b63434bd9c7ac7ba4cbc11b6311f9f
Reviewed-by: Mate Barany <mate.barany@qt.io>
This commit is contained in:
Edward Welbourne 2021-05-26 11:26:00 +02:00
parent 210063a3cf
commit e08ca2c9c8
4 changed files with 5 additions and 5 deletions

View File

@ -434,7 +434,7 @@ language_aliases = {
'Navaho': 'Navajo',
'Oriya': 'Odia',
'Kirghiz': 'Kyrgyz'
}
}
territory_map = {
0: ("AnyTerritory", "ZZ"),

View File

@ -417,7 +417,7 @@ class LocaleScanner (object):
('long', 'format', 'wide'),
('short', 'format', 'abbreviated'),
('narrow', 'format', 'narrow'),
) # Used for month and day names
) # Used for month and day names
def __find(self, xpath):
retries, foundNone = [ xpath.split('/') ], True
@ -485,7 +485,7 @@ class LocaleScanner (object):
return self.find(stem + 'displayName')
except Error:
pass
for x in ('zero', 'one', 'two', 'few', 'many', 'other'):
for x in ('zero', 'one', 'two', 'few', 'many', 'other'):
try:
return self.find(f'{stem}displayName[count={x}]')
except Error:

View File

@ -619,7 +619,7 @@ class Locale (object):
(fullName, fullName),
(fullName, fullName),
(number, number)),
},
},
sizes=('long', 'short', 'narrow')):
for cal in calendars:
try:

View File

@ -283,7 +283,7 @@ class LocaleDataWriter (LocaleSourceEditor):
locale.minus, locale.plus, locale.exp,
locale.quotationStart, locale.quotationEnd,
locale.alternateQuotationStart, locale.alternateQuotationEnd)) +
tuple (date_format_data.append(f) for f in # 2 entries:
tuple(date_format_data.append(f) for f in # 2 entries:
(locale.longDateFormat, locale.shortDateFormat)) +
tuple(time_format_data.append(f) for f in # 2 entries:
(locale.longTimeFormat, locale.shortTimeFormat)) +