diff options
author | 2010-10-23 14:07:23 +0200 | |
---|---|---|
committer | 2010-10-23 14:07:23 +0200 | |
commit | 7ba64ae9b97a7fe26e94fd9457396015aabf7ef3 (patch) | |
tree | b7ea0e92050816accdd5ca08de8f9cde5b65f480 | |
parent | Fix various style issues (diff) | |
download | gentoo-bumpchecker-7ba64ae9b97a7fe26e94fd9457396015aabf7ef3.tar.gz gentoo-bumpchecker-7ba64ae9b97a7fe26e94fd9457396015aabf7ef3.tar.bz2 gentoo-bumpchecker-7ba64ae9b97a7fe26e94fd9457396015aabf7ef3.zip |
string module is deprecated
-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" |