Skip to content

Commit acfa006

Browse files
authored
Merge pull request #496 from joernu76/issue495
Replace deprecated dedent function by a similar function.
2 parents 246dd6c + 0aa6b53 commit acfa006

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/mpl_toolkits/basemap/proj.py

+6-1
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)