diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gnome_module.py | 6 | ||||
-rw-r--r-- | modules/portage_module.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/gnome_module.py b/modules/gnome_module.py index 1caee1d..6556eef 100644 --- a/modules/gnome_module.py +++ b/modules/gnome_module.py @@ -2,7 +2,7 @@ # LICENSE - GPL2 # gnome module -import urllib2, package_module, string, simple_cache_module +import urllib2, package_module, simple_cache_module import clioptions_module # import ftp_module @@ -142,7 +142,7 @@ class GNOME: for file in files: # only keep files with .tar.bz2 ending. if 0 < file.find(".tar.") and 0 < file.find(".bz2"): - file = string.replace(file, ".tar.bz2", "") + file = file.replace(".tar.bz2", "") newfiles.append(file) return newfiles @@ -152,7 +152,7 @@ class GNOME: latest_string = "LATEST-IS-" latest = "" for item in lines: - if 0 <= string.rfind(item, latest_string): + if 0 <= item.string.rfind(latest_string): latest = item try: diff --git a/modules/portage_module.py b/modules/portage_module.py index f41e4a0..8d661ba 100644 --- a/modules/portage_module.py +++ b/modules/portage_module.py @@ -4,7 +4,7 @@ # the portage module. import os, sys, shutil -import string, signal, re, pickle, tempfile +import signal, re, pickle, tempfile import package_module sys.path = ["/usr/lib/portage/pym"] + sys.path os.environ["PORTAGE_CALLER"] = "depchecker" |