Skip to content

Commit

Permalink
fix the readthedocs compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
wjo1212 committed Aug 15, 2018
1 parent 22d3bf6 commit dfbd1fc
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions aliyun/log/logclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import time
import zlib
from datetime import datetime
import locale
import logging

from .acl_response import *
from .consumer_group_request import *
Expand Down Expand Up @@ -47,14 +47,22 @@
from .external_store_config import ExternalStoreConfig
from .external_store_config_response import *

logger = logging.getLogger(__name__)


CONNECTION_TIME_OUT = 60
MAX_LIST_PAGING_SIZE = 500
MAX_GET_LOG_PAGING_SIZE = 100

DEFAULT_QUERY_RETRY_COUNT = 10
DEFAULT_QUERY_RETRY_INTERVAL = 0.2

locale.setlocale(locale.LC_ALL, str('en_US.UTF-8'))

try:
import locale
locale.setlocale(locale.LC_ALL, str('en_US.UTF-8'))
except ValueError as ex:
logger.info("failed to set locale to en_US.UTF-8. skip it: {0}".format(ex))


def _apply_cn_keys_patch():
Expand Down

0 comments on commit dfbd1fc

Please sign in to comment.