parent
4f29e2b353
commit
40aa3d808b
1 changed files with 1 additions and 3 deletions
|
@ -619,9 +619,7 @@ class Connection(CommonConnection, ConnectionHandlers):
|
||||||
def __init__(self, name):
|
def __init__(self, name):
|
||||||
CommonConnection.__init__(self, name)
|
CommonConnection.__init__(self, name)
|
||||||
ConnectionHandlers.__init__(self)
|
ConnectionHandlers.__init__(self)
|
||||||
# this property is used to prevent double connections
|
|
||||||
# If we succeed to connect, remember it so next time we try (after a
|
|
||||||
# disconnection) we try only this type.
|
|
||||||
self.lang = None
|
self.lang = None
|
||||||
if locale.getdefaultlocale()[0]:
|
if locale.getdefaultlocale()[0]:
|
||||||
self.lang = locale.getdefaultlocale()[0].split('_')[0]
|
self.lang = locale.getdefaultlocale()[0].split('_')[0]
|
||||||
|
|
Loading…
Add table
Reference in a new issue