More PEP8 fixes that were introduced in the last couple commits.

This commit is contained in:
Eric Day
2010-10-26 15:37:32 -07:00
parent 6edf9cdffa
commit 8463a06c26

View File

@@ -213,10 +213,10 @@ def deferredToThread(f):
def xhtml_escape(value):
"""Escapes a string so it is valid within XML or XHTML.
Code is directly from the utf8 function in
http://github.com/facebook/tornado/blob/master/tornado/escape.py
"""
return saxutils.escape(value, {'"': """})
@@ -232,4 +232,3 @@ def utf8(value):
return value.encode("utf-8")
assert isinstance(value, str)
return value