[javascriptlint-commit] SF.net SVN: javascriptlint: [156] trunk/pyjsl/parse.py
Status: Beta
Brought to you by:
matthiasmiller
|
From: <mat...@us...> - 2008-03-03 18:41:16
|
Revision: 156
http://javascriptlint.svn.sourceforge.net/javascriptlint/?rev=156&view=rev
Author: matthiasmiller
Date: 2008-03-03 10:41:11 -0800 (Mon, 03 Mar 2008)
Log Message:
-----------
use __str__ instead of __repr__
Modified Paths:
--------------
trunk/pyjsl/parse.py
Modified: trunk/pyjsl/parse.py
===================================================================
--- trunk/pyjsl/parse.py 2008-03-03 18:31:17 UTC (rev 155)
+++ trunk/pyjsl/parse.py 2008-03-03 18:41:11 UTC (rev 156)
@@ -26,7 +26,7 @@
if self.col > other.col:
return 1
return 0
- def __repr__(self):
+ def __str__(self):
return '(line %i, col %i)' % (self.line+1, self.col+1)
class NodePositions():
@@ -102,7 +102,7 @@
self._end_pos = NodePos(self._end_line, self._end_col)
return self._end_pos
- def __repr__(self):
+ def __str__(self):
kind = self.kind
if not kind:
kind = '(none)'
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|