Skip to content

Commit b540133

Browse files
committed
Fix warnings caused by newer python version
1 parent f8f0041 commit b540133

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

api/server/swagger_server/controllers/refereed_preprint_details_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def papers_url(reviewed_by=None, query=None, page=None, per_page=None, sort_by=N
5252

5353
@cache.memoize() # memoize handles function parameters, .cached does not
5454
def papers_get(reviewed_by=None, query=None, published_in=None, page=None, per_page=None, sort_by=None, sort_order=None): # noqa: E501
55-
"""Get paginated collections of refereed preprints, optionally filtered by reviewing service
55+
r"""Get paginated collections of refereed preprints, optionally filtered by reviewing service
5656
5757
# noqa: E501
5858

neotools/test_txt2node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def assert_nodes_equal(self, expected: XMLNode, actual: XMLNode):
275275
super().assert_nodes_equal(expected, actual)
276276

277277
def test_jats(self):
278-
input = b'''<?xml version="1.0" encoding="UTF-8"?>
278+
input = br'''<?xml version="1.0" encoding="UTF-8"?>
279279
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.2d1 20170631//EN" "JATS-archivearticle1.dtd">
280280
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" article-type="article" dtd-version="1.2d1" specific-use="production" xml:lang="en">
281281
<front>

sdg/sdneo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def create_articles(self, doi_list: List[str]):
3434
def filter_existing_complete_articles(doi_list: List[str]):
3535
filtered_list = []
3636
for doi in doi_list:
37-
if not re.match('^10.\d{4,9}/[-._;()/:A-Z0-9]+$', doi, flags=re.IGNORECASE):
37+
if not re.match(r'^10.\d{4,9}/[-._;()/:A-Z0-9]+$', doi, flags=re.IGNORECASE):
3838
logger.warning(f"{doi} is not a doi. Ignored.")
3939
else:
4040
results = self.db.query(SDARTICLE_LOADING_STATUS(params={'doi': doi})) # 'complete' | 'partial' | 'absent'

0 commit comments

Comments
 (0)