mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
refactoring
This commit is contained in:
parent
3ada0e3e0b
commit
9ad8650dd3
1 changed files with 1 additions and 4 deletions
|
@ -1393,10 +1393,7 @@ class ConfigObj(Section):
|
||||||
"""Decode ASCII strings to unicode if a self.encoding is specified."""
|
"""Decode ASCII strings to unicode if a self.encoding is specified."""
|
||||||
if sys.version_info > (3,):
|
if sys.version_info > (3,):
|
||||||
return str(aString)
|
return str(aString)
|
||||||
if self.encoding:
|
return aString.decode('ascii') if self.encoding else aString
|
||||||
return aString.decode('ascii')
|
|
||||||
else:
|
|
||||||
return aString
|
|
||||||
|
|
||||||
def _decode(self, infile, encoding):
|
def _decode(self, infile, encoding):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue