Browse Source

Merge pull request #245 from mtahmed/master

Fix setting of query in HtmlWrap class based on availability of PyQuery
main
Lakshmi 9 years ago
parent
commit
747c15a33d
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      hyde/template.py

+ 2
- 3
hyde/template.py View File

@@ -25,9 +25,8 @@ class HtmlWrap(object):
try:
from pyquery import PyQuery
except:
PyQuery = False
if PyQuery:
self.q = PyQuery(html)
PyQuery = None
self.q = PyQuery(html) if PyQuery else None

def __unicode__(self):
return self.raw


Loading…
Cancel
Save