Skip to content

Commit

Permalink
Merge pull request dbcli#596 from lelit/issue595
Browse files Browse the repository at this point in the history
Fix for issue dbcli#595
  • Loading branch information
amjith authored Oct 16, 2016
2 parents 12c268c + 44ceb97 commit 1b6fee1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DEVELOP.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``
Expand Down
2 changes: 1 addition & 1 deletion pgcli/packages/prioritization.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
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')
Expand Down

0 comments on commit 1b6fee1

Please sign in to comment.