From f0874cc1ea3f270813d5a4699a96459bdc337db3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20David=20Ib=C3=A1=C3=B1ez?= Date: Thu, 27 Mar 2014 21:00:09 +0100 Subject: [PATCH] Always use new-style classes in Python 2 --- pygit2/credentials.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygit2/credentials.py b/pygit2/credentials.py index 1789022..cad215a 100644 --- a/pygit2/credentials.py +++ b/pygit2/credentials.py @@ -28,7 +28,7 @@ # Import from pygit2 from _pygit2 import GIT_CREDTYPE_USERPASS_PLAINTEXT, GIT_CREDTYPE_SSH_KEY -class UserPass: +class UserPass(object): """Username/Password credentials This is an object suitable for passing to a remote's credentials @@ -51,7 +51,7 @@ class UserPass: def __call__(self, _url, _username, _allowed): return self -class Keypair: +class Keypair(object): """SSH key pair credentials This is an object suitable for passing to a remote's credentials