diff --git a/cinje/helpers.py b/cinje/helpers.py
index <HASH>..<HASH> 100644
--- a/cinje/helpers.py
+++ b/cinje/helpers.py
@@ -12,11 +12,11 @@ except ImportError:
 	bless = unicode
 	try:
 		from html import escape as __escape
-		
-		def escape(value):
-			return __escape(str(value))
 	except:
 		from cgi import escape as escape
+	
+	def escape(value):
+		return __escape(str(value))
 
 from json import dumps as _json
Fun fact, cgi.escape is bad people, too.