This website works better with JavaScript.
Home
Explore
Help
Sign In
jmg
/
hyde
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
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
82d58681c2
a9635fac7d
commit
747c15a33d
1 changed files
with
2 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Write
Preview
Loading…
Cancel
Save