aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/util
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-12-14 21:03:47 -0500
committerW. Trevor King <wking@drexel.edu>2009-12-14 21:03:47 -0500
commit595e4efee8b736e97c31eb0810ffeea508257413 (patch)
treecc77faf4695975fbb7feae81a41fbf86c72b09c2 /libbe/util
parentf9ee7a537561be80b9c232dd4fc848ddb564f6b0 (diff)
downloadbugseverywhere-595e4efee8b736e97c31eb0810ffeea508257413.tar.gz
Transitioned html to Command-format
Diffstat (limited to 'libbe/util')
-rw-r--r--libbe/util/encoding.py2
1 files changed, 1 insertions, 1 deletions
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)