From 595e4efee8b736e97c31eb0810ffeea508257413 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 14 Dec 2009 21:03:47 -0500 Subject: Transitioned html to Command-format --- libbe/util/encoding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbe/util') diff --git a/libbe/util/encoding.py b/libbe/util/encoding.py index 434bae7..dcc41f8 100644 --- a/libbe/util/encoding.py +++ b/libbe/util/encoding.py @@ -78,7 +78,7 @@ def get_file_contents(path, mode='r', encoding=None, decode=False): return contents def set_file_contents(path, contents, mode='w', encoding=None): - if type(value) == types.UnicodeType: + if type(contents) == types.UnicodeType: if encoding == None: encoding = get_filesystem_encoding() f = codecs.open(path, mode, encoding) -- cgit