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

Skip to content

Commit d2908e9

Browse files
committed
Remove unused _find_dedent_regex & _dedent_regex.
They are unused since the replacement of cbook.dedent by inspect.cleandoc.
1 parent 91cb8a8 commit d2908e9

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/matplotlib/cbook/__init__.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import operator
1616
import os
1717
from pathlib import Path
18-
import re
1918
import shlex
2019
import subprocess
2120
import sys
@@ -567,14 +566,6 @@ def get_realpath_and_stat(path):
567566
return realpath, stat_key
568567

569568

570-
# A regular expression used to determine the amount of space to
571-
# remove. It looks for the first sequence of spaces immediately
572-
# following the first newline, or at the beginning of the string.
573-
_find_dedent_regex = re.compile(r"(?:(?:\n\r?)|^)( *)\S")
574-
# A cache to hold the regexs that actually remove the indent.
575-
_dedent_regex = {}
576-
577-
578569
class maxdict(dict):
579570
"""
580571
A dictionary with a maximum size.

0 commit comments

Comments
 (0)