Commits

Lorenzo Gil Sánchez  committed 79172cf

Use the new pyjslint

  • Participants
  • Parent commits e920b81
  • Tags 0.5.1

Comments (0)

Files changed (3)

 Changes
 =======
 
-0.5.1dev (unreleased)
----------------------
-- ...
+0.5.1 (2011-11-16)
+------------------
+- Use the new pyjslint 0.3.1.
 
 0.5.0 (2011-11-06)
 ------------------

File hghooks/__init__.py

 import shutil
 import tempfile
 
-version = "0.5.1dev"
+version = "0.5.1"
 
 re_options = re.IGNORECASE | re.MULTILINE | re.DOTALL
 skip_pattern = re.compile('# hghooks: (.*)', re_options)

File hghooks/code.py

     HAS_PYFLAKES = False
 
 try:
-    from jslint import jslint
+    import pyjslint
     HAS_JSLINT = True
 except ImportError:
     HAS_JSLINT = False
 
 
 def jslint_check(data, filename):
-    analizing = jslint.check_JSLint(data)
+    analizing = pyjslint.check_JSLint(data)
     if len(analizing) != 1:
         print >> sys.stderr, "%s: problem decoding source" % (filename, )
         print >> sys.stderr, '\n'.join(analizing[1:])