@@ -77,7 +77,7 @@ def unicode_safe(s):
77
77
return unicode (s , preferredencoding )
78
78
79
79
80
- class converter :
80
+ class converter ( object ) :
81
81
"""
82
82
Base class for handling string -> python type with support for
83
83
missing values
@@ -580,7 +580,8 @@ def get_sample_data(fname, asfileobj=True):
580
580
if matplotlib .rcParams ['examples.directory' ]:
581
581
root = matplotlib .rcParams ['examples.directory' ]
582
582
else :
583
- root = os .path .join (os .path .dirname (__file__ ), "mpl-data" , "sample_data" )
583
+ root = os .path .join (os .path .dirname (__file__ ),
584
+ "mpl-data" , "sample_data" )
584
585
path = os .path .join (root , fname )
585
586
586
587
if asfileobj :
@@ -1820,11 +1821,3 @@ def _check_output(*popenargs, **kwargs):
1820
1821
check_output = subprocess .check_output
1821
1822
else :
1822
1823
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