From 1ffffa414cbe26b695981ed25befc7ec9766936e Mon Sep 17 00:00:00 2001 From: Remco Wendt Date: Mon, 24 Oct 2011 11:20:38 +0200 Subject: Made dotfiles python2.5 compatible --- dotfiles/__init__.py | 2 +- dotfiles/cli.py | 2 ++ test_dotfiles.py | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dotfiles/__init__.py b/dotfiles/__init__.py index 63e0d2b..26cd367 100644 --- a/dotfiles/__init__.py +++ b/dotfiles/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -from .core import * +__all__ = ["core"] diff --git a/dotfiles/cli.py b/dotfiles/cli.py index b77fb95..a056f70 100644 --- a/dotfiles/cli.py +++ b/dotfiles/cli.py @@ -6,6 +6,8 @@ dotfiles.cli This module provides the CLI interface to dotfiles. """ +from __future__ import absolute_import + import os from . import core import ConfigParser diff --git a/test_dotfiles.py b/test_dotfiles.py index f9d6fcf..85cdce6 100755 --- a/test_dotfiles.py +++ b/test_dotfiles.py @@ -1,6 +1,8 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +from __future__ import with_statement + import os import shutil import tempfile -- cgit v1.2.3