From 7ba64ae9b97a7fe26e94fd9457396015aabf7ef3 Mon Sep 17 00:00:00 2001 From: Gilles Dartiguelongue Date: Sat, 23 Oct 2010 14:07:23 +0200 Subject: string module is deprecated --- modules/gnome_module.py | 6 +++--- 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" -- cgit v1.2.3-65-gdbad