Skip to content

Commit

Permalink
fixup: fixed W605 invalid escape sequence (within stings)
Browse files Browse the repository at this point in the history
use raw string notation to express escape sequences
  • Loading branch information
fightling committed Apr 23, 2018
1 parent 78c6735 commit 2e7e4fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion voctocore/tests/helper/voctomix_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def setUp(self):
lib.config.Config.resetToDefaults()

def assertContainsIgnoringWhitespace(self, text, search):
regex = search.replace(" ", "\\s*")
regex = search.replace(" ", r"\s*")

try:
self.assertRegex(text, regex)
Expand Down
2 changes: 1 addition & 1 deletion voctogui/lib/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def establish(host):

log.info('establishing Connection to %s', host)
conn = socket.create_connection((host, port))
log.debug('Connection successful \\o/')
log.debug(r'Connection successful \o/')

ip = conn.getpeername()[0]
log.debug('Remote-IP is %s', ip)
Expand Down

0 comments on commit 2e7e4fd

Please sign in to comment.