From 7ba867d445c34b88342f37da2f1a96d82edd5386 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Wed, 28 Jan 2009 15:41:17 +0100 Subject: [PATCH] Make objects inherit from 'object' instead of nothing, per comments from python expert :-) --- gitdump.py | 2 +- keysync.py | 2 +- pggit.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gitdump.py b/gitdump.py index 032c7db..6f21ae1 100644 --- a/gitdump.py +++ b/gitdump.py @@ -17,7 +17,7 @@ import psycopg2 import ConfigParser import urllib -class AuthorizedKeysDumper: +class AuthorizedKeysDumper(object): def __init__(self, db, conf): self.db = db self.conf = conf diff --git a/keysync.py b/keysync.py index 99ddaae..50e17b5 100644 --- a/keysync.py +++ b/keysync.py @@ -11,7 +11,7 @@ import os import psycopg2 import ConfigParser -class KeySynchronizer: +class KeySynchronizer(object): def __init__(self, db): self.db = db diff --git a/pggit.py b/pggit.py index de1c958..9ebc0fe 100755 --- a/pggit.py +++ b/pggit.py @@ -22,7 +22,7 @@ import ConfigParser ALLOWED_COMMANDS = ('git-upload-pack', 'git-receive-pack') WRITE_COMMANDS = ('git-receive-pack') -class Logger: +class Logger(object): def __init__(self, cfg): self.user = "Unknown" self.logfile = cfg.get('paths','logfile') @@ -40,7 +40,7 @@ class Logger: class InternalException(Exception): pass -class PgGit: +class PgGit(object): user = None command = None path = None -- 2.39.5