mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
Add encoding detection
This commit is contained in:
parent
6ffc6480a2
commit
8b091a9c1d
@ -15,7 +15,9 @@ platform-specific details from the core.
|
||||
from i18n import gettext as _
|
||||
from demandload import *
|
||||
demandload(globals(), "cStringIO errno getpass popen2 re shutil sys tempfile")
|
||||
demandload(globals(), "os threading time calendar ConfigParser")
|
||||
demandload(globals(), "os threading time calendar ConfigParser locale")
|
||||
|
||||
_encoding = os.environ.get("HGENCODING") or locale.getpreferredencoding()
|
||||
|
||||
# used by parsedate
|
||||
defaultdateformats = ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M',
|
||||
|
Loading…
Reference in New Issue
Block a user