Skip to content

Commit

Permalink
Merge pull request matplotlib#7773 from anntzer/more-invalid-escapes
Browse files Browse the repository at this point in the history
Fix more invalid escapes sequences.
  • Loading branch information
efiring authored and QuLogic committed Jan 30, 2017
1 parent 47126aa commit de8c311
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/matplotlib/backends/backend_qt5.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def _create_qApp():
# check for DISPLAY env variable on X11 build of Qt
if hasattr(QtGui, "QX11Info"):
display = os.environ.get('DISPLAY')
if display is None or not re.search(':\d', display):
if display is None or not re.search(r':\d', display):
raise RuntimeError('Invalid DISPLAY variable')

qApp = QtWidgets.QApplication([str(" ")])
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/pyplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2214,7 +2214,7 @@ def pad(s, l):

commands = get_plot_commands()

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

# Collect the first sentence of the docstring for all of the
# plotting commands.
Expand Down

0 comments on commit de8c311

Please sign in to comment.