From 20c318d1a95fe5dd33ca179c6a9e7787ab0c7e24 Mon Sep 17 00:00:00 2001 From: zoidberg10 Date: Mon, 16 Jan 2012 20:51:02 +0100 Subject: hosterlinks.txt - little fix --- tests/HosterPluginTester.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/HosterPluginTester.py') diff --git a/tests/HosterPluginTester.py b/tests/HosterPluginTester.py index f9ca74e5f..23e9507f1 100644 --- a/tests/HosterPluginTester.py +++ b/tests/HosterPluginTester.py @@ -6,6 +6,7 @@ from logging import log, DEBUG from hashlib import md5 from time import time from shutil import move +import codecs from nose.tools import nottest @@ -95,7 +96,7 @@ class HosterPluginTester(PluginTester): c = Core() -f = open(join(dirname(__file__), "hosterlinks.txt")) +f = codecs.open(join(dirname(__file__), "hosterlinks.txt"), "r", "utf_8") links = [x.strip() for x in f.readlines()] urls = [] flags = {} -- cgit v1.2.3