From 69c1e845a404dc6824be639cf0e251ea43b025ee Mon Sep 17 00:00:00 2001 From: fuzion Date: Wed, 29 Sep 2010 20:51:14 -0500 Subject: [PATCH] Custom neck str fix --- src/Neck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Neck.py b/src/Neck.py index b8b7dcd64..e4b660459 100644 --- a/src/Neck.py +++ b/src/Neck.py @@ -159,7 +159,7 @@ def __init__(self, engine, instrument, playerObj): neckfiles = [ f for f in os.listdir(themeNeckPath) if os.path.isfile(os.path.join(themeNeckPath, f)) ] neckfiles.sort() for i in neckfiles: - themeNeck.append(unicode(i)) + themeNeck.append(str(i)) if len(themeNeck) > 0: i = random.randint(0,len(themeNeck)-1) if engine.loadImgDrawing(self, "neckDrawing", os.path.join("themes", themename, "necks", themeNeck[i]), textureSize = (256, 256)): @@ -182,7 +182,7 @@ def __init__(self, engine, instrument, playerObj): if( os.path.splitext(i)[0] == "randomneck" or os.path.splitext(i)[0] == "overdriveneck" ): continue else: - self.neck.append(unicode(i)[:-4]) # evilynux - filename w/o extension + self.neck.append(str(i)[:-4]) # evilynux - filename w/o extension i = random.randint(0,len(self.neck)-1) if engine.loadImgDrawing(self, "neckDrawing", os.path.join("necks",self.neck[i]+".png"), textureSize = (256, 256)):