Skip to content

Commit 3c6cb95

Browse files
committed
remove trailing whitespaces
Signed-off-by: hwassman <[email protected]>
1 parent 59e3302 commit 3c6cb95

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

source/watcher.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import os
2-
import sys
31
'''
42
##############################################################################
53
# Copyright 2023 IBM Corp.
@@ -22,6 +20,7 @@
2220
@author: HWASSMAN
2321
'''
2422

23+
import os
2524
import time
2625
from bridgeLogger import getBridgeLogger
2726
from messages import MSG
@@ -72,20 +71,20 @@ def watch(self):
7271
""" Function to keep watching in a loop """
7372
self.running = True
7473
self.logger.debug(MSG['StartWatchingFiles'].format(self.paths))
75-
while self.running:
76-
try:
74+
while self.running:
75+
try:
7776
# Look for changes
7877
time.sleep(self.refresh_delay_secs)
79-
self.update_files_list()
80-
self.look()
81-
except KeyboardInterrupt:
78+
self.update_files_list()
79+
self.look()
80+
except KeyboardInterrupt:
8281
self.logger.details(MSG['StopWatchingFiles'].format(self.paths))
83-
break
82+
break
8483
except FileNotFoundError as e:
8584
# Action on file not found
8685
self.logger.warning(MSG['FileNotFound'].format(e.filename))
8786
pass
88-
except Exception as e:
87+
except Exception as e:
8988
self.logger.warning(MSG['StopWatchingFiles'].format(self.paths))
9089
self.logger.details(MSG['UnhandledError'].format(type(e).__name__))
9190
break

tests/test_configWatcher.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import time
33
from source.watcher import ConfigWatcher
44
from source.bridgeLogger import configureLogging
5-
from nose2.tools.such import helper as assert_helper
65
from nose2.tools.decorators import with_setup
76
from threading import Thread
87

0 commit comments

Comments
 (0)