|
28 | 28 | import numpy.ma as ma |
29 | 29 |
|
30 | 30 |
|
31 | | - |
32 | 31 | import types |
33 | 32 |
|
34 | 33 |
|
@@ -77,7 +76,7 @@ def unicode_safe(s): |
77 | 76 | return unicode(s, preferredencoding) |
78 | 77 |
|
79 | 78 |
|
80 | | -class converter: |
| 79 | +class converter(object): |
81 | 80 | """ |
82 | 81 | Base class for handling string -> python type with support for |
83 | 82 | missing values |
@@ -580,7 +579,8 @@ def get_sample_data(fname, asfileobj=True): |
580 | 579 | if matplotlib.rcParams['examples.directory']: |
581 | 580 | root = matplotlib.rcParams['examples.directory'] |
582 | 581 | else: |
583 | | - root = os.path.join(os.path.dirname(__file__), "mpl-data", "sample_data") |
| 582 | + root = os.path.join(os.path.dirname(__file__), |
| 583 | + "mpl-data", "sample_data") |
584 | 584 | path = os.path.join(root, fname) |
585 | 585 |
|
586 | 586 | if asfileobj: |
@@ -830,7 +830,6 @@ def append(self, x): |
830 | 830 | if len(self.data) == self.max: |
831 | 831 | self.cur = 0 |
832 | 832 | # Permanently change self's class from non-full to full |
833 | | - # FIXME __Full is not defined |
834 | 833 | self.__class__ = __Full |
835 | 834 |
|
836 | 835 | def get(self): |
@@ -1820,11 +1819,3 @@ def _check_output(*popenargs, **kwargs): |
1820 | 1819 | check_output = subprocess.check_output |
1821 | 1820 | else: |
1822 | 1821 | check_output = _check_output |
1823 | | - |
1824 | | - |
1825 | | -if __name__ == '__main__': |
1826 | | - assert(allequal([1, 1, 1])) |
1827 | | - assert(not allequal([1, 1, 0])) |
1828 | | - assert(allequal([])) |
1829 | | - assert(allequal(('a', 'a'))) |
1830 | | - assert(not allequal(('a', 'b'))) |
0 commit comments