summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2012-09-16 22:36:56 +0200
committerFlorian Bruhin <git@the-compiler.org>2012-09-16 22:36:56 +0200
commit8ef85ca3cfeaff8cc10b7520240df06b1b28fb74 (patch)
treed6e1d315e2cc640e97a2b455b8fc47c89d1011d8
parenteda286f01cb0d4d9639658232fd32b4d90db694f (diff)
downloadxojgrep-8ef85ca3cfeaff8cc10b7520240df06b1b28fb74.tar.gz
xojgrep-8ef85ca3cfeaff8cc10b7520240df06b1b28fb74.zip
We don't need indexes
-rw-r--r--xojgrep.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/xojgrep.py b/xojgrep.py
index 1b615f3..e6fe465 100644
--- a/xojgrep.py
+++ b/xojgrep.py
@@ -79,10 +79,8 @@ class XOJFile:
# FIXME check for invalid files
try:
self.tree = lxml.etree.parse(f)
- self.index = 0
except lxml.etree.XMLSyntaxError:
self.tree = None
- self.index = 0
raise # FIXME output error
def getcontent(self):
@@ -102,7 +100,6 @@ class PDFFile:
def __init__(self, filename):
self.pdffile = open(filename, 'rb')
self.doc = pyPdf.PdfFileReader(self.pdffile)
- self.index = 0
def __del__(self):
self.pdffile.close()