summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith.r@gmail.com>2016-10-16 10:41:36 -0700
committerGitHub <noreply@github.com>2016-10-16 10:41:36 -0700
commit1b6fee1f6e5ad1686f622758d6cecf2996dd3050 (patch)
treead3c89f089dac100f8eabe289e092dc6dfc50cac
parent12c268c13b848ba3a2408b05e4371c300a7d457e (diff)
parent44ceb975224ac4f4da27c115eda2ec53550ced11 (diff)
Merge pull request #596 from lelit/issue595
Fix for issue #595
-rw-r--r--DEVELOP.rst2
-rw-r--r--pgcli/packages/prioritization.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/DEVELOP.rst b/DEVELOP.rst
index 1ddb2b1b..0c4dedf3 100644
--- a/DEVELOP.rst
+++ b/DEVELOP.rst
@@ -129,7 +129,7 @@ Running the integration tests
Integration tests use `behave package http://pythonhosted.org/behave/`_ and
pytest.
Configuration settings for this package are provided via ``behave.ini`` file
-in root directory.
+in the ``tests`` directory.
The database user (``pg_test_user = postgres`` in .ini file) has to have
permissions to create and drop test database. Default user is ``postgres``
diff --git a/pgcli/packages/prioritization.py b/pgcli/packages/prioritization.py
index eb01b310..37ced704 100644
--- a/pgcli/packages/prioritization.py
+++ b/pgcli/packages/prioritization.py
@@ -11,7 +11,7 @@ white_space_regex = re.compile('\\s+', re.MULTILINE)
def _compile_regex(keyword):
# Surround the keyword with word boundaries and replace interior whitespace
# with whitespace wildcards
- pattern = '\\b' + re.sub(white_space_regex, '\\s+', keyword) + '\\b'
+ pattern = '\\b' + white_space_regex.sub(r'\\s+', keyword) + '\\b'
return re.compile(pattern, re.MULTILINE | re.IGNORECASE)
keywords = get_literals('keywords')