aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@tuxion.com> 2015-12-31 11:20:06 -0500
committerGravatar Jon Bernard <jbernard@tuxion.com> 2015-12-31 11:25:04 -0500
commitdaf76e747a0dbc9749e3d3007e26e7280fee7868 (patch)
treeb0786acc7954124b3dadef00dd208369cd883077
parent312c56a431b60f6a5dd3f191869ac9bc71143e31 (diff)
downloaddotfiles-daf76e747a0dbc9749e3d3007e26e7280fee7868.tar.gz
dotfiles-daf76e747a0dbc9749e3d3007e26e7280fee7868.tar.bz2
dotfiles-daf76e747a0dbc9749e3d3007e26e7280fee7868.zip
Use new-style classes explicitly
I forgot this is not the default in python 2 and certain things like the setter decorator do not work otherwise.
-rw-r--r--dotfiles/dotfile.py2
-rw-r--r--dotfiles/repository.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/dotfiles/dotfile.py b/dotfiles/dotfile.py
index b13882c..14a8d53 100644
--- a/dotfiles/dotfile.py
+++ b/dotfiles/dotfile.py
@@ -1,7 +1,7 @@
import errno
-class Dotfile:
+class Dotfile(object):
"""
This class implements the 'dotfile' abstraction.
diff --git a/dotfiles/repository.py b/dotfiles/repository.py
index 3f7bd00..2a461f2 100644
--- a/dotfiles/repository.py
+++ b/dotfiles/repository.py
@@ -3,7 +3,7 @@ from .dotfile import Dotfile
from operator import attrgetter
-class Repository:
+class Repository(object):
"""
This class implements the 'repository' abstraction.