Changeset 5576


Ignore:
Timestamp:
Jul 21, 2017, 2:09:02 PM (22 months ago)
Author:
hectorgh
Message:

trying to fix utf-8 problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-base-files/trunk/fuentes/install/usr/bin/lliurex-version

    r5428 r5576  
    1010import sys
    1111import os
     12import codecs
    1213import pwd,grp
    1314import argparse
     
    189190    #grp_info [0]=>name [1]=>pwd [2]=>gid [3]=>member
    190191    grupos = [ group[0] for group in grp.getgrall() if user_name in group[3] ]
    191     with open('/etc/passwd','r') as filepwd:
     192    with codecs.open('/etc/passwd','r') as filepwd:
    192193        localusers=[ line.split(':')[0] for line in filepwd.readlines() ]
    193194
Note: See TracChangeset for help on using the changeset viewer.