File tree 1 file changed +0
-3
lines changed
1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,6 @@ def _update_label(self):
154
154
widget_index = 0
155
155
if self ._locale :
156
156
org_locale_time = locale .getlocale (locale .LC_TIME )
157
- org_locale_ctype = locale .getlocale (locale .LC_CTYPE )
158
157
159
158
for part in label_parts :
160
159
part = part .strip ()
@@ -166,7 +165,6 @@ def _update_label(self):
166
165
try :
167
166
if self ._locale :
168
167
locale .setlocale (locale .LC_TIME , self ._locale )
169
- locale .setlocale (locale .LC_CTYPE , self ._locale )
170
168
datetime_format_search = re .search ('\\ {(.*)}' , part )
171
169
datetime_format_str = datetime_format_search .group ()
172
170
datetime_format = datetime_format_search .group (1 )
@@ -178,7 +176,6 @@ def _update_label(self):
178
176
widget_index += 1
179
177
if self ._locale :
180
178
locale .setlocale (locale .LC_TIME , org_locale_time )
181
- locale .setlocale (locale .LC_CTYPE , org_locale_ctype )
182
179
183
180
def _next_timezone (self ):
184
181
self ._active_tz = next (self ._timezones )
You can’t perform that action at this time.
0 commit comments