Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pycscope/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import getopt, sys, os, string, re
import keyword, parser, symbol, token

import tokenize

class Mark(object):
""" Marks, as defined by Cscope, that are implemented.
Expand Down Expand Up @@ -222,7 +222,7 @@ def parseFile(basepath, relpath, indexbuff, indexbuff_len, fnamesbuff, dump=Fals
# Open the file and get the contents
fullpath = os.path.join(basepath, relpath)
try:
f = open(fullpath, 'rU')
f = tokenize.open(fullpath)
except IOError as e:
# Can't open a file, emit message and ignore
print("pycscope.py: %s" % e)
Expand Down