Skip to content

Commit 064507a

Browse files
committed
black pandas
1 parent 707c3ef commit 064507a

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
@@ -142,19 +142,18 @@ def get_locales(prefix=None, normalize=True, locale_getter=_default_locale_gette
142142
# raw_locales is "\n" separated list of locales
143143
# it may contain non-decodable parts, so split
144144
# extract what we can and then rejoin.
145-
raw_locales = raw_locales.split(b'\n')
145+
raw_locales = raw_locales.split(b"\n")
146146
out_locales = []
147147
for x in raw_locales:
148148
try:
149-
out_locales.append(str(
150-
x, encoding=options.display.encoding))
149+
out_locales.append(str(x, encoding=options.display.encoding))
151150
except UnicodeError:
152151
# 'locale -a' is used to populated 'raw_locales' and on
153152
# Redhat 7 Linux (and maybe others) prints locale names
154153
# using windows-1252 encoding. Bug only triggered by
155154
# a few special characters and when there is an
156155
# extensive list of installed locales.
157-
out_locales.append(str(x, encoding='windows-1252'))
156+
out_locales.append(str(x, encoding="windows-1252"))
158157

159158
except TypeError:
160159
pass

0 commit comments

Comments
 (0)