Loading installsystems/image.py +7 −1 Changes for installsystems/image.py: 7 added lines, 1 removed line. Original line number Original line Diff line number Diff line Loading @@ -1160,13 +1160,19 @@ class Changelog(dict): Object representing a changelog in memory Object representing a changelog in memory ''' ''' def __init__(self, data): def __init__(self, data): self.verbatim = "" self.verbatim = u"" self.load(data) self.load(data) def load(self, data): def load(self, data): ''' ''' Load a changelog file Load a changelog file ''' ''' # ensure data are correct UTF-8 if isinstance(data, str): try: data = unicode(data, "UTF-8") except UnicodeDecodeError: raise Exception("Invalid character encoding in changelog") version = None version = None lines = data.split("\n") lines = data.split("\n") for line in lines: for line in lines: Loading Loading
installsystems/image.py +7 −1 Changes for installsystems/image.py: 7 added lines, 1 removed line. Original line number Original line Diff line number Diff line Loading @@ -1160,13 +1160,19 @@ class Changelog(dict): Object representing a changelog in memory Object representing a changelog in memory ''' ''' def __init__(self, data): def __init__(self, data): self.verbatim = "" self.verbatim = u"" self.load(data) self.load(data) def load(self, data): def load(self, data): ''' ''' Load a changelog file Load a changelog file ''' ''' # ensure data are correct UTF-8 if isinstance(data, str): try: data = unicode(data, "UTF-8") except UnicodeDecodeError: raise Exception("Invalid character encoding in changelog") version = None version = None lines = data.split("\n") lines = data.split("\n") for line in lines: for line in lines: Loading