summaryrefslogtreecommitdiff
path: root/portato/eix/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'portato/eix/__init__.py')
-rw-r--r--portato/eix/__init__.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/portato/eix/__init__.py b/portato/eix/__init__.py
index 3c1958e..6768ca7 100644
--- a/portato/eix/__init__.py
+++ b/portato/eix/__init__.py
@@ -18,7 +18,7 @@ from . import exceptions as ex
from ..helper import debug
class EixReader(object):
- supported_version = (28,)
+ supported_versions = (28,)
def __init__ (self, filename):
self.filename = filename
@@ -31,10 +31,15 @@ class EixReader(object):
raise ex.UnsupportedVersionError(self.version)
debug("Started EixReader for version %s.", self.version)
+
+ self.file.seek(0)
except:
self.close()
raise
+ def header (self):
+ return parser.header(self.file)
+
def close (self):
self.file.close()
debug("EixReader closed.")