summaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-01-12 08:29:09 +0000
committerZac Medico <zmedico@gentoo.org>2007-01-12 08:29:09 +0000
commitdf523828f0062408169421e2d4654695e4e53159 (patch)
treef071d95575c577b5cd362de61127a8596b0f2570 /pym
parentUse startswith and endswith to simplify code. (diff)
downloadportage-multirepo-df523828f0062408169421e2d4654695e4e53159.tar.gz
portage-multirepo-df523828f0062408169421e2d4654695e4e53159.tar.bz2
portage-multirepo-df523828f0062408169421e2d4654695e4e53159.zip
Fix typos from the previous commit.
svn path=/main/trunk/; revision=5599
Diffstat (limited to 'pym')
-rw-r--r--pym/getbinpkg.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/getbinpkg.py b/pym/getbinpkg.py
index 40f3c642..462da429 100644
--- a/pym/getbinpkg.py
+++ b/pym/getbinpkg.py
@@ -6,7 +6,7 @@
if not hasattr(__builtins__, "set"):
from sets import Set as set
-#from output import *
+from output import red, yellow, green
import htmllib,HTMLParser,formatter,sys,os,xpak,time,tempfile,base64,urllib2
try:
@@ -58,7 +58,7 @@ class ParseLinks(HTMLParser.HTMLParser):
def get_anchors_by_suffix(self,suffix):
newlist = []
for x in self.PL_anchors:
- if x.endswith(prefix):
+ if x.endswith(suffix):
if x not in newlist:
newlist.append(x[:])
return newlist