From aaa29d1f248eb9340a0534e302a72fa71deb17d2 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 22 Dec 2011 10:51:41 +0000 Subject: [PATCH] minor fix --- lib/core/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index 8939f17f2..1cb613a6a 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1863,7 +1863,7 @@ def getFileItems(filename, commentPrefix='#', unicode_=True, lowercase=False, un Returns newline delimited items contained inside file """ - retVal = list() if not unique else set() + retVal = list() if not unique else OrderedDict() checkFile(filename) @@ -1889,11 +1889,11 @@ def getFileItems(filename, commentPrefix='#', unicode_=True, lowercase=False, un continue if unique: - retVal.add(line) + retVal[line] = True else: retVal.append(line) - return retVal + return retVal if not unique else retVal.keys() def goGoodSamaritan(prevValue, originalCharset): """