Change the locale to C (#786833)
This commit is contained in:
parent
f6876beea6
commit
84c56294bf
@ -34,6 +34,7 @@ import sys
|
||||
import os
|
||||
import ConfigParser
|
||||
import tempfile
|
||||
import locale
|
||||
|
||||
from base import BaseLoraxClass, DataHolder
|
||||
import output
|
||||
@ -67,6 +68,9 @@ class Lorax(BaseLoraxClass):
|
||||
BaseLoraxClass.__init__(self)
|
||||
self._configured = False
|
||||
|
||||
# set locale to C
|
||||
locale.setlocale(locale.LC_ALL, 'C')
|
||||
|
||||
def configure(self, conf_file="/etc/lorax/lorax.conf"):
|
||||
self.conf = ConfigParser.SafeConfigParser()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user