Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d4ce99a

Browse filesBrowse files
authored
Merge pull request #14140 from anntzer/backslash-quote
Avoid backslash-quote by changing surrounding quotes.
2 parents 7001b33 + b9e2552 commit d4ce99a
Copy full SHA for d4ce99a

File tree

Expand file treeCollapse file tree

5 files changed

+12
-15
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+12
-15
lines changed

‎examples/showcase/bachelors_degrees_by_gender.py

Copy file name to clipboardExpand all lines: examples/showcase/bachelors_degrees_by_gender.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@
105105

106106
# Note that if the title is descriptive enough, it is unnecessary to include
107107
# axis labels; they are self-evident, in this plot's case.
108-
fig.suptitle('Percentage of Bachelor\'s degrees conferred to women in '
109-
'the U.S.A. by major (1970-2011)\n', fontsize=18, ha='center')
108+
fig.suptitle("Percentage of Bachelor's degrees conferred to women in "
109+
"the U.S.A. by major (1970-2011)", fontsize=18, ha="center")
110110

111111
# Finally, save the figure as a PNG.
112112
# You can also save it as a PDF, JPEG, etc.

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3203,8 +3203,7 @@ def errorbar(self, x, y, yerr=None, xerr=None,
32033203
raise ValueError(
32043204
'errorevery must be positive integer or tuple of integers')
32053205
if int(offset) != offset:
3206-
raise ValueError(
3207-
'errorevery\'s starting index must be an integer')
3206+
raise ValueError("errorevery's starting index must be an integer")
32083207

32093208
self._process_unit_info(xdata=x, ydata=y, kwargs=kwargs)
32103209

‎lib/matplotlib/backends/backend_svg.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_svg.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def escape_comment(s):
8282
def escape_attrib(s):
8383
s = s.replace("&", "&")
8484
s = s.replace("'", "'")
85-
s = s.replace("\"", """)
85+
s = s.replace('"', """)
8686
s = s.replace("<", "&lt;")
8787
s = s.replace(">", "&gt;")
8888
return s

‎lib/matplotlib/dates.py

Copy file name to clipboardExpand all lines: lib/matplotlib/dates.py
+5-7Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,13 +1520,11 @@ def get_locator(self, dmin, dmax):
15201520
else:
15211521
# We went through the whole loop without breaking, default to
15221522
# the last interval in the list and raise a warning
1523-
cbook._warn_external('AutoDateLocator was unable to pick an '
1524-
'appropriate interval for this date '
1525-
'range. It may be necessary to add an '
1526-
'interval value to the '
1527-
'AutoDateLocator\'s intervald '
1528-
'dictionary. Defaulting to {0}.'
1529-
.format(interval))
1523+
cbook._warn_external(
1524+
f"AutoDateLocator was unable to pick an appropriate "
1525+
f"interval for this date range. It may be necessary to "
1526+
f"add an interval value to the AutoDateLocator's "
1527+
f"intervald dictionary. Defaulting to {interval}.")
15301528

15311529
# Set some parameters as appropriate
15321530
self._freq = freq

‎lib/matplotlib/tests/test_font_manager.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_font_manager.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ def test_user_fonts_linux(tmpdir, monkeypatch):
160160
@pytest.mark.skipif(sys.platform != 'win32', reason='Windows only')
161161
def test_user_fonts_win32():
162162
if not os.environ.get('APPVEYOR', False):
163-
pytest.xfail('This test does only work on appveyor since user fonts '
164-
'are Windows specific and the developer\'s font '
165-
'directory should remain unchanged')
163+
pytest.xfail("This test does only work on appveyor since user fonts "
164+
"are Windows specific and the developer's font directory "
165+
"should remain unchanged.")
166166

167167
font_test_file = 'mpltest.ttf'
168168

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.