Remove deprecated string module and import syntax
authorantarus <antarus@gentoo.org>
Sun, 1 Apr 2007 04:20:21 +0000 (04:20 -0000)
committerantarus <antarus@gentoo.org>
Sun, 1 Apr 2007 04:20:21 +0000 (04:20 -0000)
svn path=/; revision=373

trunk/src/glsa-check/glsa.py

index 2cd093a02c62cce78a2f1d214f895a98a7d9d82f..4d90240b1a39ab7697d41d2d974e7033a0c5cd89 100644 (file)
 
 __author__ = "Marius Mauch <genone@gentoo.org>"
 
-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"] == "*":