From ca658e394684093258716f4fbbceef5bcc16e5a4 Mon Sep 17 00:00:00 2001 From: Christophe Benz Date: Mon, 4 Apr 2011 14:29:31 +0200 Subject: [PATCH] python2.5 compatibility. --- docs/source/genapi.py | 2 ++ tools/make_man.py | 2 ++ weboob/applications/videoob/videoob.py | 2 ++ 3 files changed, 6 insertions(+) diff --git a/docs/source/genapi.py b/docs/source/genapi.py index 40a312fe..1f912235 100755 --- a/docs/source/genapi.py +++ b/docs/source/genapi.py @@ -1,5 +1,7 @@ #!/usr/bin/env python +from __future__ import with_statement + import os def genapi(): diff --git a/tools/make_man.py b/tools/make_man.py index c77d26a3..abef35ec 100755 --- a/tools/make_man.py +++ b/tools/make_man.py @@ -16,6 +16,8 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +from __future__ import with_statement + import sys, os, tempfile import imp, inspect import optparse diff --git a/weboob/applications/videoob/videoob.py b/weboob/applications/videoob/videoob.py index 3722ab91..e2e63f49 100644 --- a/weboob/applications/videoob/videoob.py +++ b/weboob/applications/videoob/videoob.py @@ -15,6 +15,8 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +from __future__ import with_statement + import subprocess import sys import os