[javascriptlint-commit] SF.net SVN: javascriptlint:[295] trunk
Status: Beta
Brought to you by:
matthiasmiller
From: <mat...@us...> - 2010-04-19 15:19:49
|
Revision: 295 http://javascriptlint.svn.sourceforge.net/javascriptlint/?rev=295&view=rev Author: matthiasmiller Date: 2010-04-19 15:19:43 +0000 (Mon, 19 Apr 2010) Log Message: ----------- Fixes for Windows build. Modified Paths: -------------- trunk/javascriptlint/lint.py trunk/javascriptlint/visitation.py trunk/setup.py Modified: trunk/javascriptlint/lint.py =================================================================== --- trunk/javascriptlint/lint.py 2009-12-16 17:23:22 UTC (rev 294) +++ trunk/javascriptlint/lint.py 2010-04-19 15:19:43 UTC (rev 295) @@ -531,7 +531,9 @@ scopes = [scope] class scope_checks: - ' ' + """ This is a non-standard visitation class to track scopes. The + docstring is unused since this class never throws lint errors. + """ @visitation.visit('push', tok.NAME) def _name(self, node): if node.node_index == 0 and node.parent.kind == tok.COLON and node.parent.parent.kind == tok.RC: Modified: trunk/javascriptlint/visitation.py =================================================================== --- trunk/javascriptlint/visitation.py 2009-12-16 17:23:22 UTC (rev 294) +++ trunk/javascriptlint/visitation.py 2010-04-19 15:19:43 UTC (rev 295) @@ -29,7 +29,7 @@ if klass.__name__.lower() != klass.__name__: raise ValueError, 'class names must be lowercase' if not klass.__doc__: - raise ValueError, 'missing docstring on class' + raise ValueError, 'missing docstring on class %s' % klass.__name__ # Look for functions with the "_visit_nodes" property. visitor = klass() Modified: trunk/setup.py =================================================================== --- trunk/setup.py 2009-12-16 17:23:22 UTC (rev 294) +++ trunk/setup.py 2010-04-19 15:19:43 UTC (rev 295) @@ -107,7 +107,7 @@ 'py2exe': { 'excludes': ['javascriptlint.spidermonkey_'], 'bundle_files': 1, - 'optimize': 2, + 'optimize': 1, # requires 1 to preserve docstrings } }, zipfile = None This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |