From 36d3b9615847fbb62bff0eebd9fc7592b6044376 Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Sat, 25 Apr 2015 16:44:08 +0200 Subject: [PATCH] Stop using string.find It's gone in python3 Signed-off-by: Julien Cristau --- excuse.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/excuse.py b/excuse.py index 2281dfa..7f87ae8 100644 --- a/excuse.py +++ b/excuse.py @@ -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 + "
  • Maintainer: %s\n" % (self.maint) - if self.section and string.find(self.section, "/") > -1: + if self.section and self.section.find("/") > -1: res = res + "
  • 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: