From 51011296474309808091adb1639a9019a774f4f3 Mon Sep 17 00:00:00 2001 From: antarus Date: Sun, 1 Apr 2007 04:20:21 +0000 Subject: [PATCH] Remove deprecated string module and import syntax svn path=/; revision=373 --- trunk/src/glsa-check/glsa.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/trunk/src/glsa-check/glsa.py b/trunk/src/glsa-check/glsa.py index 2cd093a..4d90240 100644 --- a/trunk/src/glsa-check/glsa.py +++ b/trunk/src/glsa-check/glsa.py @@ -13,7 +13,12 @@ __author__ = "Marius Mauch " -import os, sys, urllib, time, string, codecs, re +import os +import sys +import urllib +import time +import codecs +import re import xml.dom.minidom if sys.version_info[0:2] < (2,3): @@ -518,8 +523,8 @@ class Glsa: for k in self.packages.keys(): pkg = self.packages[k] for path in pkg: - vul_vers = string.join(path["vul_vers"]) - unaff_vers = string.join(path["unaff_vers"]) + vul_vers = "".join(path["vul_vers"]) + unaff_vers = "".join(join(path["unaff_vers"]) outstream.write("Affected package: %s\n" % k) outstream.write("Affected archs: ") if path["arch"] == "*": -- 2.26.2