summaryrefslogtreecommitdiff
path: root/sphinx/pycode
diff options
context:
space:
mode:
authorDasIch <dasdasich@googlemail.com>2010-05-01 19:17:52 +0200
committerDasIch <dasdasich@googlemail.com>2010-05-01 19:17:52 +0200
commita25745aa06d3cdad97988e8795fb2492133a55c8 (patch)
tree8e0d0a241c215040ebc33f1deb33c875bcaa5dfa /sphinx/pycode
parent455ebde09dc55d91088d15a89fab0f2dfd1d3b51 (diff)
downloadsphinx-a25745aa06d3cdad97988e8795fb2492133a55c8.tar.gz
Fixed issue #1
Diffstat (limited to 'sphinx/pycode')
-rw-r--r--sphinx/pycode/pgen2/tokenize.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sphinx/pycode/pgen2/tokenize.py b/sphinx/pycode/pgen2/tokenize.py
index 4489db89..7ad9f012 100644
--- a/sphinx/pycode/pgen2/tokenize.py
+++ b/sphinx/pycode/pgen2/tokenize.py
@@ -143,7 +143,9 @@ class TokenError(Exception): pass
class StopTokenizing(Exception): pass
-def printtoken(type, token, (srow, scol), (erow, ecol), line): # for testing
+def printtoken(type, token, scell, ecell, line): # for testing
+ srow, scol = scell
+ erow, ecol = ecell
print "%d,%d-%d,%d:\t%s\t%s" % \
(srow, scol, erow, ecol, tok_name[type], repr(token))