From d9a7cd1da64da57bea05e5b234b9d9c6fea7f911 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sun, 11 Apr 2010 01:39:31 +0200 Subject: applied 2to3 and fixed the result --- portato/eix/py_parser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'portato/eix/py_parser.py') diff --git a/portato/eix/py_parser.py b/portato/eix/py_parser.py index 231c206..a6927a1 100644 --- a/portato/eix/py_parser.py +++ b/portato/eix/py_parser.py @@ -17,7 +17,7 @@ In this module (nearly) all of these types have a corresponding function. For the exact way all the functions work, have a look at the eix format description. """ -from __future__ import absolute_import, with_statement + __docformat__ = "restructuredtext" import os @@ -53,7 +53,7 @@ def _get_bytes (file, length, expect_list = False): s = file.read(length) if len(s) != length: - raise EndOfFileException, file.name + raise EndOfFileException(file.name) if length == 1 and not expect_list: return ord(s) # is faster than unpack and we have a scalar @@ -187,7 +187,7 @@ def string (file, skip = False): s = file.read(nelems) if len(s) != nelems: - raise EndOfFileException, file.name + raise EndOfFileException(file.name) return s -- cgit v1.2.3-70-g09d2