Ignore:
Timestamp:
Nov 29, 2017, 5:21:45 PM (23 months ago)
Author:
mabarracus
Message:

Fixed utf-8 bug decoding files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • hwdetector/trunk/fuentes/valentin.install/usr/bin/valentin

    r6404 r6405  
    3333        elif type(var) == type(list()):
    3434            if len(var) == 2 and var[0] == '__gz__':
    35                 content=zlib.decompress(base64.b64decode(var[1])).encode('utf-8')
     35                content=zlib.decompress(base64.b64decode(var[1])).decode('utf-8')
    3636                replaced = content.replace(u'\n',indentation+u'\n'+indentation)
    3737                st += u'{}{}'.format(indentation,replaced)
Note: See TracChangeset for help on using the changeset viewer.