Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
Reverted PEP8 edits
Browse files Browse the repository at this point in the history
  • Loading branch information
dzelge committed Jan 18, 2019
1 parent e8f4f37 commit 6021cfb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion cate/ops/animate.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@

import os

# import matplotlib
# noinspection PyBroadException
# try:
# import matplotlib
Expand Down
4 changes: 2 additions & 2 deletions cate/util/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@ class ProcessOutputMonitor:
:param started: Either a callable that receives a text line and returns a tuple (label, total_work)
or a regex that must match in order to signal the start of progress monitoring.
The regex must provide the group names "label" or "total_work" or both,
e.g. r"(?P<label>\w+)" or "(?P<total_work>\d+)"
e.g. "(?P<label>\w+)" or "(?P<total_work>\d+)"
:param progress: Either a callable that receives a text line and returns a tuple (work, msg)
or a regex that must match in order to signal process.
The regex must provide group names "work" or "msg" or both,
e.g. r"(?P<msg>\w+)" or "(?P<work>\d+)"
e.g. "(?P<msg>\w+)" or "(?P<work>\d+)"
:param done: Either a callable that receives a text line and returns True or False
or a regex that must match in order to signal the end of progress monitoring.
"""
Expand Down
2 changes: 1 addition & 1 deletion cate/util/web/webapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ def url_pattern(pattern: str):
:return: equivalent regex pattern
:raise ValueError: if *pattern* is invalid
"""
name_pattern = r'(?P<%s>[^\;\/\?\:\@\&\=\+\$\,]+)'
name_pattern = '(?P<%s>[^\\;\\/\\?\\:\\@\\&\\=\\+\\$\\,]+)'
reg_expr = ''
pos = 0
while True:
Expand Down

0 comments on commit 6021cfb

Please sign in to comment.