Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 822d799

Browse files
committed
Merge pull request #1382 from NelleV/pep8_container
PEP8 fixes on container.py
2 parents ade2696 + 83e8780 commit 822d799

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

lib/matplotlib/container.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import matplotlib.cbook as cbook
22

3+
34
class Container(tuple):
45
"""
56
Base class for containers.
@@ -15,7 +16,7 @@ def __init__(self, kl, label=None):
1516

1617
self.eventson = False # fire events only if eventson
1718
self._oid = 0 # an observer id
18-
self._propobservers = {} # a dict from oids to funcs
19+
self._propobservers = {} # a dict from oids to funcs
1920

2021
self._remove_method = None
2122

@@ -69,8 +70,10 @@ def remove_callback(self, oid):
6970
For adding callbacks
7071
7172
"""
72-
try: del self._propobservers[oid]
73-
except KeyError: pass
73+
try:
74+
del self._propobservers[oid]
75+
except KeyError:
76+
pass
7477

7578
def pchanged(self):
7679
"""
@@ -109,5 +112,3 @@ def __init__(self, markerline_stemlines_baseline, **kwargs):
109112
self.stemlines = stemlines
110113
self.baseline = baseline
111114
Container.__init__(self, markerline_stemlines_baseline, **kwargs)
112-
113-

0 commit comments

Comments
 (0)