Skip to content

Commit 24ffe7f

Browse files
committed
Merge branch 'review/fix-travis-issues'
Closing pull request: Review/fix travis issues #198
2 parents ceab271 + 2e7e4fd commit 24ffe7f

File tree

6 files changed

+14
-12
lines changed

6 files changed

+14
-12
lines changed

voctocore/lib/sources/decklinkavsource.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99

1010
class DeckLinkAVSource(AVSource):
11+
1112
def __init__(self, name, outputs=None, has_audio=True, has_video=True):
1213
self.log = logging.getLogger('DecklinkAVSource[{}]'.format(name))
1314
super().__init__(name, outputs, has_audio, has_video)
@@ -94,15 +95,15 @@ def _parse_audiostream_map(self, config_section):
9495

9596
for key in Config[config_section]:
9697
value = Config.get(config_section, key)
97-
m = re.match('audiostream\[(\d+)\]', key)
98+
m = re.match(r'audiostream\[(\d+)\]', key)
9899
if m:
99100
audiostream = int(m.group(1))
100101
audiostream_map[audiostream] = value
101102

102103
return audiostream_map
103104

104105
def _parse_audiostream_mapping(self, mapping):
105-
m = re.match('(\d+)\+(\d+)', mapping)
106+
m = re.match(r'(\d+)\+(\d+)', mapping)
106107
if m:
107108
return (int(m.group(1)), int(m.group(2)),)
108109
else:

voctocore/tests/helper/voctomix_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def setUp(self):
2222
lib.config.Config.resetToDefaults()
2323

2424
def assertContainsIgnoringWhitespace(self, text, search):
25-
regex = search.replace(" ", "\s*")
25+
regex = search.replace(" ", r"\s*")
2626

2727
try:
2828
self.assertRegex(text, regex)

voctocore/voctocore.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ def main():
7070
args.parse()
7171

7272
from lib.args import Args
73-
docolor = (Args.color == 'always') or (Args.color == 'auto' and
74-
sys.stderr.isatty())
73+
docolor = (Args.color == 'always') \
74+
or (Args.color == 'auto' and sys.stderr.isatty())
7575

7676
handler = LogHandler(docolor, Args.timestamp)
7777
logging.root.addHandler(handler)

voctogui/lib/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def establish(host):
1717

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

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

voctogui/lib/videodisplay.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def __init__(self, drawing_area, port, width=None, height=None,
2121
else:
2222
previewcaps = Config.get('mix', 'videocaps')
2323

24-
use_previews = (Config.getboolean('previews', 'enabled') and
25-
Config.getboolean('previews', 'use'))
24+
use_previews = Config.getboolean('previews', 'enabled') \
25+
and Config.getboolean('previews', 'use')
2626

2727
# Preview-Ports are Raw-Ports + 1000
2828
if use_previews:

voctogui/voctogui.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
# main class
3636
class Voctogui(object):
37+
3738
def __init__(self):
3839
self.log = logging.getLogger('Voctogui')
3940
from lib.args import Args
@@ -123,8 +124,8 @@ def main():
123124
args.parse()
124125

125126
from lib.args import Args
126-
docolor = (Args.color == 'always') or (Args.color == 'auto' and
127-
sys.stderr.isatty())
127+
docolor = (Args.color == 'always') \
128+
or (Args.color == 'auto' and sys.stderr.isatty())
128129

129130
from lib.loghandler import LogHandler
130131
handler = LogHandler(docolor, Args.timestamp)
@@ -165,8 +166,8 @@ def main():
165166
# The list-comparison is not complete
166167
# (one could use a local hostname or the local system ip),
167168
# but it's only here to warn that one might be making a mistake
168-
use_previews = (Config.getboolean('previews', 'enabled') and
169-
Config.getboolean('previews', 'use'))
169+
use_previews = Config.getboolean('previews', 'enabled') \
170+
and Config.getboolean('previews', 'use')
170171
looks_like_localhost = Config.get('server', 'host') in ['::1',
171172
'127.0.0.1',
172173
'localhost']

0 commit comments

Comments
 (0)