diff options
Diffstat (limited to 'modules/gnome_module.py')
-rw-r--r-- | modules/gnome_module.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/gnome_module.py b/modules/gnome_module.py index 06fe6d8..afba235 100644 --- a/modules/gnome_module.py +++ b/modules/gnome_module.py @@ -44,8 +44,8 @@ class GNOME: raise ValueError("Couldn't open %s" % url) ret = [] - for line in data.iter_lines(): - components = str.strip(line).split(':') + for line in data.text.splitlines(): + components = line.strip().split(':') # Skip invalid lines if len(components) != 4 or len(components[2]) == 0: continue @@ -56,7 +56,7 @@ class GNOME: if (pkg.name and pkg.version): ret.append(pkg) else: - print "Warning: Ignoring package %s because parsing of its name or version string '%s' failed" % (components[1], components[2]) + print("Warning: Ignoring package %s because parsing of its name or version string '%s' failed" % (components[1], components[2])) return ret def generate_data_individual(self, release_packages): @@ -114,7 +114,7 @@ def compare_packages(release_packages, latest_packages, packages_in_portage): release_package = package latest_package = portage_module.findpackage(package.name, latest_packages) if latest_package == None: - print "Warning: latest packages set does not have an entry for %s, using release set version %s." % (package.name, package.version) + print("Warning: latest packages set does not have an entry for %s, using release set version %s." % (package.name, package.version)) latest_package = package portage_package = portage_module.findpackage(package.name, packages_in_portage) @@ -139,15 +139,15 @@ def compare_packages(release_packages, latest_packages, packages_in_portage): # FIXME: Reports release version as latest version to not have to deal with this right now if latest_package == None: - print "No latest version known for %s, FIXME!" % release_package.name + print("No latest version known for %s, FIXME!" % release_package.name) latest_package = release_package if DEBUG: - print "package: " + str(release_package.name) + \ - " | pp: " + str(portage_package.version) + \ - " | rp: " + str(release_package.version) + \ - " | lp: " + str(latest_package.version) + \ - " | status: " + str(status) + print("package: " + str(release_package.name) + + " | pp: " + str(portage_package.version) + + " | rp: " + str(release_package.version) + + " | lp: " + str(latest_package.version) + + " | status: " + str(status)) status_packages.append(package_module.PackageStatus(release_package.name, str(portage_package.version), str(release_package.version), str(latest_package.version), status)) |