aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Remco Wendt <remco@maykinmedia.nl> 2011-10-24 11:20:38 +0200
committerGravatar Jon Bernard <jbernard@tuxion.com> 2011-10-24 12:25:41 -0400
commit1ffffa414cbe26b695981ed25befc7ec9766936e (patch)
treeab795643df57468ea9e3a0ed122d7623fe1d26b3
parent203578fcb7fdac1ba7e4059f68e2c837f7ba8b98 (diff)
downloaddotfiles-1ffffa414cbe26b695981ed25befc7ec9766936e.tar.gz
dotfiles-1ffffa414cbe26b695981ed25befc7ec9766936e.tar.bz2
dotfiles-1ffffa414cbe26b695981ed25befc7ec9766936e.zip
Made dotfiles python2.5 compatible
-rw-r--r--dotfiles/__init__.py2
-rw-r--r--dotfiles/cli.py2
-rwxr-xr-xtest_dotfiles.py2
3 files changed, 5 insertions, 1 deletions
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