mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-24 20:01:15 +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
90f5993c4a
commit
36d3b96158
@ -15,7 +15,6 @@
|
||||
# GNU General Public License for more details.
|
||||
|
||||
import re
|
||||
import string
|
||||
|
||||
|
||||
class Excuse(object):
|
||||
@ -137,7 +136,7 @@ class Excuse(object):
|
||||
(self.name, self.name, self.name, self.ver[0], self.ver[1])
|
||||
if 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)
|
||||
if self.daysold != None:
|
||||
if self.daysold < self.mindays:
|
||||
@ -189,7 +188,7 @@ class Excuse(object):
|
||||
except UnicodeDecodeError:
|
||||
maint = unicode(self.maint,'utf-8')
|
||||
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))
|
||||
if self.daysold != None:
|
||||
if self.daysold < self.mindays:
|
||||
|
Loading…
x
Reference in New Issue
Block a user