Skip to content

Commit f140f80

Browse files
committed
black pandas
1 parent 0aeedbb commit f140f80

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pandas/_config/localization.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -146,19 +146,18 @@ def get_locales(prefix=None, normalize=True, locale_getter=_default_locale_gette
146146
# raw_locales is "\n" separated list of locales
147147
# it may contain non-decodable parts, so split
148148
# extract what we can and then rejoin.
149-
raw_locales = raw_locales.split(b'\n')
149+
raw_locales = raw_locales.split(b"\n")
150150
out_locales = []
151151
for x in raw_locales:
152152
try:
153-
out_locales.append(str(
154-
x, encoding=options.display.encoding))
153+
out_locales.append(str(x, encoding=options.display.encoding))
155154
except UnicodeError:
156155
# 'locale -a' is used to populated 'raw_locales' and on
157156
# Redhat 7 Linux (and maybe others) prints locale names
158157
# using windows-1252 encoding. Bug only triggered by
159158
# a few special characters and when there is an
160159
# extensive list of installed locales.
161-
out_locales.append(str(x, encoding='windows-1252'))
160+
out_locales.append(str(x, encoding="windows-1252"))
162161

163162
except TypeError:
164163
pass

0 commit comments

Comments
 (0)