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

Skip to content

Commit 2a85769

Browse files
committed
adds encoding as a function parameter
1 parent 5e8d808 commit 2a85769

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/matplotlib/rcsetup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@
3636

3737

3838
class ValidateInStrings:
39-
def __init__(self, key, valid, ignorecase=False):
39+
def __init__(self, key, valid, ignorecase=False, encoding='utf-8'):
4040
'valid is a list of legal strings'
4141
self.key = key
4242
self.ignorecase = ignorecase
43+
self.encoding = encoding
4344

4445
def func(s):
4546
if ignorecase:

0 commit comments

Comments
 (0)