On Wed, Oct 8, 2014 at 4:50 PM, Christian Boltz
=== modified file 'utils/apparmor/logparser.py' --- utils/apparmor/logparser.py 2014-08-20 22:55:44 +0000 +++ utils/apparmor/logparser.py 2014-09-22 23:11:23 +0000 @@ -330,7 +330,7 @@ #event_type = None try: #print(self.filename) - self.LOG = open_file_read(self.filename) + self.LOG = open(self.filename, 'r', errors='surrogateescape') except IOError: raise AppArmorException('Can not read AppArmor logfile: ' + self.filename) #LOG = open_file_read(log_open)
This is probably not the final patch (it breaks compability with python2, which we keep upstream), but it should work ;-)
You should open the file in binary mode if you expect byte strings -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org