mirror of
https://github.com/yweber/lodel2.git
synced 2025-10-30 19:19:03 +01:00
PEP8
This commit is contained in:
parent
c075992819
commit
9986d068c0
16 changed files with 31 additions and 35 deletions
|
|
@ -1,9 +1,10 @@
|
|||
#-*- coding: utf-8 -*-
|
||||
|
||||
import hashlib
|
||||
import copy
|
||||
import hashlib
|
||||
import json
|
||||
|
||||
|
||||
## @brief Stores multilangage string
|
||||
class MlString(object):
|
||||
|
||||
|
|
@ -41,7 +42,7 @@ class MlString(object):
|
|||
elif lang in self.values:
|
||||
return self.values[lang]
|
||||
else:
|
||||
return str(self)
|
||||
return str(self)
|
||||
|
||||
## @brief Set a translation
|
||||
# @param lang str : the lang
|
||||
|
|
@ -103,4 +104,3 @@ class MlString(object):
|
|||
|
||||
def __repr__(self):
|
||||
return repr(self.values)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue