From 2812406e48a7ffa011dc60ed37dda6131c08ae3d Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Tue, 5 Apr 2011 13:28:50 -0600 Subject: STY: Replace remaining old style classes with classes subclassing object. --- numpy/testing/print_coercion_tables.py | 2 +- numpy/testing/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/testing') diff --git a/numpy/testing/print_coercion_tables.py b/numpy/testing/print_coercion_tables.py index 7b5320d7e..d87544987 100755 --- a/numpy/testing/print_coercion_tables.py +++ b/numpy/testing/print_coercion_tables.py @@ -4,7 +4,7 @@ import numpy as np # Generic object that can be added, but doesn't do anything else -class GenericObject: +class GenericObject(object): def __init__(self, v): self.v = v diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py index 01ce31c4a..a2d3119c5 100644 --- a/numpy/testing/utils.py +++ b/numpy/testing/utils.py @@ -1380,7 +1380,7 @@ class WarningMessage(object): "line : %r}" % (self.message, self._category_name, self.filename, self.lineno, self.line)) -class WarningManager: +class WarningManager(object): """ A context manager that copies and restores the warnings filter upon exiting the context. -- cgit v1.2.1