8000 Drop need for Py2 unicode hack. · matplotlib/matplotlib@f789c2a · GitHub
[go: up one dir, main page]

Skip to content

Commit f789c2a

Browse files
committed
Drop need for Py2 unicode hack.
1 parent 9769dff commit f789c2a

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

lib/matplotlib/cbook/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2799,7 +2799,7 @@ def method(self, *args, **kwargs):
27992799
exists = True
28002800
for alias in aliases:
28012801
method = make_alias(prefix + prop)
2802-
method.__name__ = str(prefix + alias) # Py2 compat.
2802+
method.__name__ = prefix + alias
28032803
method.__doc__ = "alias for `{}`".format(prefix + prop)
28042804
local_d[prefix + alias] = method
28052805
if not exists:

lib/matplotlib/collections.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
they are meant to be fast for common use cases (e.g., a large set of solid
99
line segemnts)
1010
"""
11-
from __future__ import (absolute_import, division, print_function,
12-
unicode_literals)
11+
from __future__ import absolute_import, division, print_function
1312

1413
import warnings
1514

lib/matplotlib/lines.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"""
55

66
# TODO: expose cap and join style attrs
7-
from __future__ import (absolute_import, division, print_function,
8-
unicode_literals)
7+
from __future__ import absolute_import, division, print_function
98

109
import six
1110

lib/matplotlib/patches.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
# -*- coding: utf-8 -*-
2-
3-
from __future__ import (absolute_import, division, print_function,
4-
unicode_literals)
1+
from __future__ import absolute_import, division, print_function
52

63
import six
74
from six.moves import map, zip
@@ -1474,7 +1471,7 @@ def __init__(self, xy, radius=5, **kwargs):
14741471
"""
14751472
Create true circle at center *xy* = (*x*, *y*) with given
14761473
*radius*. Unlike :class:`~matplotlib.patches.CirclePolygon`
1477-
which is a polygonal approximation, this uses Bézier splines
1474+
which is a polygonal approximation, this uses Bezier splines
14781475
and is much closer to a scale-free circle.
14791476
14801477
Valid kwargs are:

0 commit comments

Comments
 (0)
0