There was an error while loading. Please reload this page.
2 parents a4bd3ce + 7585573 commit 109251fCopy full SHA for 109251f
2 files changed
lib/matplotlib/backends/backend_qt5.py
@@ -132,7 +132,7 @@ def _create_qApp():
132
# check for DISPLAY env variable on X11 build of Qt
133
if hasattr(QtGui, "QX11Info"):
134
display = os.environ.get('DISPLAY')
135
- if display is None or not re.search(':\d', display):
+ if display is None or not re.search(r':\d', display):
136
raise RuntimeError('Invalid DISPLAY variable')
137
138
qApp = QtWidgets.QApplication([str(" ")])
lib/matplotlib/pyplot.py
@@ -2118,7 +2118,7 @@ def pad(s, l):
2118
2119
commands = get_plot_commands()
2120
2121
- first_sentence = re.compile("(?:\s*).+?\.(?:\s+|$)", flags=re.DOTALL)
+ first_sentence = re.compile(r"(?:\s*).+?\.(?:\s+|$)", flags=re.DOTALL)
2122
2123
# Collect the first sentence of the docstring for all of the
2124
# plotting commands.
0 commit comments