mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-28 19:01:35 +00:00
Stop using string.find
It's gone in python3 Signed-off-by: Julien Cristau <jcristau@debian.org>
This commit is contained in:
parent
1e1f574f8a
commit
d75813eb07
@ -15,7 +15,6 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import string
|
|
||||||
|
|
||||||
|
|
||||||
class Excuse(object):
|
class Excuse(object):
|
||||||
@ -137,7 +136,7 @@ class Excuse(object):
|
|||||||
(self.name, self.name, self.name, self.ver[0], self.ver[1])
|
(self.name, self.name, self.name, self.ver[0], self.ver[1])
|
||||||
if self.maint:
|
if self.maint:
|
||||||
res = res + "<li>Maintainer: %s\n" % (self.maint)
|
res = res + "<li>Maintainer: %s\n" % (self.maint)
|
||||||
if self.section and string.find(self.section, "/") > -1:
|
if self.section and self.section.find("/") > -1:
|
||||||
res = res + "<li>Section: %s\n" % (self.section)
|
res = res + "<li>Section: %s\n" % (self.section)
|
||||||
if self.daysold != None:
|
if self.daysold != None:
|
||||||
if self.daysold < self.mindays:
|
if self.daysold < self.mindays:
|
||||||
@ -189,7 +188,7 @@ class Excuse(object):
|
|||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
maint = unicode(self.maint,'utf-8')
|
maint = unicode(self.maint,'utf-8')
|
||||||
res.append("Maintainer: %s" % maint)
|
res.append("Maintainer: %s" % maint)
|
||||||
if self.section and string.find(self.section, "/") > -1:
|
if self.section and self.section.find("/") > -1:
|
||||||
res.append("Section: %s" % (self.section))
|
res.append("Section: %s" % (self.section))
|
||||||
if self.daysold != None:
|
if self.daysold != None:
|
||||||
if self.daysold < self.mindays:
|
if self.daysold < self.mindays:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user