From 8161754a76575c7c4b7ced9a440756a148e6d05f Mon Sep 17 00:00:00 2001 From: Alex Schworer Date: Sun, 25 Jul 2010 09:59:17 -0700 Subject: [PATCH 1/2] make Shotgun and ShotgunCRUD inherit from object --- shotgun_api3.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shotgun_api3.py b/shotgun_api3.py index 1d0cc70fb..128c198c4 100644 --- a/shotgun_api3.py +++ b/shotgun_api3.py @@ -145,7 +145,7 @@ # --------------------------------------------------------------------------------------------- class ShotgunError(Exception): pass -class Shotgun: +class Shotgun(object): # Used to split up requests into batches of records_per_page when doing requests. this helps speed tremendously # when getting lots of results back. doesn't affect the interface of the api at all (you always get the full set # of results back as one array) but just how the client class communicates with the server. @@ -153,7 +153,7 @@ class Shotgun: def __init__(self, base_url, script_name, api_key, convert_datetimes_to_utc=True, http_proxy=None): """ - Initialize Shotgun. +z Initialize Shotgun. """ self.server = None if base_url.split("/")[0] not in ("http:","https:"): @@ -564,7 +564,7 @@ def schema(self, entity_type): def entity_types(self): raise ShotgunError("Deprecated: use schema_entity_read() instead") -class ShotgunCRUD: +class ShotgunCRUD(object): def __init__(self, options): self.__sg_url = options['server_url'] self.__auth_args = {'script_name': options['script_name'], 'script_key': options['script_key']} From ca44fb06c62dfce40459fdb09829b94c995695cb Mon Sep 17 00:00:00 2001 From: Alex Schworer Date: Sun, 25 Jul 2010 10:06:21 -0700 Subject: [PATCH 2/2] fix typo --- shotgun_api3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shotgun_api3.py b/shotgun_api3.py index 128c198c4..a0e1abf41 100644 --- a/shotgun_api3.py +++ b/shotgun_api3.py @@ -153,7 +153,7 @@ class Shotgun(object): def __init__(self, base_url, script_name, api_key, convert_datetimes_to_utc=True, http_proxy=None): """ -z Initialize Shotgun. + Initialize Shotgun. """ self.server = None if base_url.split("/")[0] not in ("http:","https:"):