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 de8c311

Browse filesBrowse files
efiringQuLogic
authored andcommitted
Merge pull request #7773 from anntzer/more-invalid-escapes
Fix more invalid escapes sequences.
1 parent 47126aa commit de8c311
Copy full SHA for de8c311

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎lib/matplotlib/backends/backend_qt5.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_qt5.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def _create_qApp():
132132
# check for DISPLAY env variable on X11 build of Qt
133133
if hasattr(QtGui, "QX11Info"):
134134
display = os.environ.get('DISPLAY')
135-
if display is None or not re.search(':\d', display):
135+
if display is None or not re.search(r':\d', display):
136136
raise RuntimeError('Invalid DISPLAY variable')
137137

138138
qApp = QtWidgets.QApplication([str(" ")])

‎lib/matplotlib/pyplot.py

Copy file name to clipboardExpand all lines: lib/matplotlib/pyplot.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2214,7 +2214,7 @@ def pad(s, l):
22142214

22152215
commands = get_plot_commands()
22162216

2217-
first_sentence = re.compile("(?:\s*).+?\.(?:\s+|$)", flags=re.DOTALL)
2217+
first_sentence = re.compile(r"(?:\s*).+?\.(?:\s+|$)", flags=re.DOTALL)
22182218

22192219
# Collect the first sentence of the docstring for all of the
22202220
# plotting commands.

0 commit comments

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