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

Skip to content

Commit 0bab982

Browse files
committed
unneeded argument in get_linestyle
The argument 'style' in get_linestyle of GraphicsContextBase is unnecessary and blocks any future attempt to make a property by doing linestyle = property(get_linestyle, set_linestyle) Also made GraphicsContextBase to inherit from object which is necessary for any future 'propertyfication'
1 parent b37476b commit 0bab982

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ def stop_filter(self, filter_func):
739739
pass
740740

741741

742-
class GraphicsContextBase:
742+
class GraphicsContextBase(object):
743743
"""
744744
An abstract base class that provides color, line styles, etc...
745745
"""
@@ -860,7 +860,7 @@ def get_joinstyle(self):
860860
"""
861861
return self._joinstyle
862862

863-
def get_linestyle(self, style):
863+
def get_linestyle(self):
864864
"""
865865
Return the linestyle: one of ('solid', 'dashed', 'dashdot',
866866
'dotted').

0 commit comments

Comments
 (0)