[PATCH] Fix new flake8 warning
git-svn-id: https://svn.apache.org/repos/asf/chemistry/cmislib/branches/py3_compat@1847586 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/cmislib/atompub/binding.py b/src/cmislib/atompub/binding.py
index fdf7812..8dbcff6 100644
--- a/src/cmislib/atompub/binding.py
+++ b/src/cmislib/atompub/binding.py
@@ -61,11 +61,11 @@
# just to treat them all like patterns to simplify the matching logic
ATOM_XML_TYPE = 'application/atom+xml'
ATOM_XML_ENTRY_TYPE = 'application/atom+xml;type=entry'
-ATOM_XML_ENTRY_TYPE_P = re.compile('^application/atom\+xml.*type.*entry')
+ATOM_XML_ENTRY_TYPE_P = re.compile(r'^application/atom\+xml.*type.*entry')
ATOM_XML_FEED_TYPE = 'application/atom+xml;type=feed'
-ATOM_XML_FEED_TYPE_P = re.compile('^application/atom\+xml.*type.*feed')
+ATOM_XML_FEED_TYPE_P = re.compile(r'^application/atom\+xml.*type.*feed')
CMIS_TREE_TYPE = 'application/cmistree+xml'
-CMIS_TREE_TYPE_P = re.compile('^application/cmistree\+xml')
+CMIS_TREE_TYPE_P = re.compile(r'^application/cmistree\+xml')
CMIS_QUERY_TYPE = 'application/cmisquery+xml'
CMIS_ACL_TYPE = 'application/cmisacl+xml'
@@ -1642,12 +1642,12 @@
In order for the results to be properly instantiated as objects,
make sure you include 'cmis:objectId' as one of the fields in
- your select statement, or just use "SELECT \*".
+ your select statement, or just use "SELECT *".
If you want the search results to automatically be instantiated with
the appropriate sub-class of :class:`CmisObject` you must either
include cmis:baseTypeId as one of the fields in your select statement
- or just use "SELECT \*".
+ or just use "SELECT *".
>>> q = "select * from cmis:document where cmis:name like '%test%'"
>>> resultSet = repo.query(q)
diff --git a/src/cmislib/browser/binding.py b/src/cmislib/browser/binding.py
index baab9f0..9118e6a 100644
--- a/src/cmislib/browser/binding.py
+++ b/src/cmislib/browser/binding.py
@@ -1205,12 +1205,12 @@
In order for the results to be properly instantiated as objects,
make sure you include 'cmis:objectId' as one of the fields in
- your select statement, or just use "SELECT \*".
+ your select statement, or just use "SELECT *".
If you want the search results to automatically be instantiated with
the appropriate sub-class of :class:`CmisObject` you must either
include cmis:baseTypeId as one of the fields in your select statement
- or just use "SELECT \*".
+ or just use "SELECT *".
>>> q = "select * from cmis:document where cmis:name like '%test%'"
>>> resultSet = repo.query(q)
diff --git a/src/cmislib/domain.py b/src/cmislib/domain.py
index e2ee58c..b426784 100644
--- a/src/cmislib/domain.py
+++ b/src/cmislib/domain.py
@@ -788,12 +788,12 @@
In order for the results to be properly instantiated as objects,
make sure you include 'cmis:objectId' as one of the fields in
- your select statement, or just use "SELECT \*".
+ your select statement, or just use "SELECT *".
If you want the search results to automatically be instantiated with
the appropriate sub-class of :class:`CmisObject` you must either
include cmis:baseTypeId as one of the fields in your select statement
- or just use "SELECT \*".
+ or just use "SELECT *".
>>> q = "select * from cmis:document where cmis:name like '%test%'"
>>> resultSet = repo.query(q)