Skip to content

Commit 0aa6b53

Browse files
committedAug 3, 2020
Replace deprecated dedent function by a similar function.
Fix issue #495
1 parent 246dd6c commit 0aa6b53

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎lib/mpl_toolkits/basemap/proj.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
import numpy as np
44
import pyproj
55
import math
6-
from matplotlib.cbook import dedent
6+
try:
7+
from inspect import cleandoc as dedent
8+
except ImportError:
9+
# Deprecated as of version 3.1. Not quite the same
10+
# as textwrap.dedent.
11+
from matplotlib.cbook import dedent
712

813
__version__ = '1.2.2'
914
_dg2rad = math.radians(1.)

0 commit comments

Comments
 (0)
Please sign in to comment.