mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
20 lines
414 B
Diff
20 lines
414 B
Diff
--- a/pelican/tests/support.py
|
|
+++ b/pelican/tests/support.py
|
|
@@ -150,15 +150,7 @@
|
|
|
|
|
|
def locale_available(locale_):
|
|
- old_locale = locale.setlocale(locale.LC_TIME)
|
|
-
|
|
- try:
|
|
- locale.setlocale(locale.LC_TIME, str(locale_))
|
|
- except locale.Error:
|
|
- return False
|
|
- else:
|
|
- locale.setlocale(locale.LC_TIME, old_locale)
|
|
- return True
|
|
+ return False
|
|
|
|
|
|
def can_symlink():
|