Commit 0d7e02e7 authored by Ad Schellevis's avatar Ad Schellevis

(ids) code style

parent 3eecf959
...@@ -137,7 +137,7 @@ class RuleCache(object): ...@@ -137,7 +137,7 @@ class RuleCache(object):
# lock create process # lock create process
lock = open(self.cachefile + '.LCK', 'w') lock = open(self.cachefile + '.LCK', 'w')
try: try:
fcntl.flock(lock, fcntl.LOCK_EX| fcntl.LOCK_NB) fcntl.flock(lock, fcntl.LOCK_EX | fcntl.LOCK_NB)
except IOError: except IOError:
# other process is already creating the cache, wait, let the other process do it's work and return. # other process is already creating the cache, wait, let the other process do it's work and return.
fcntl.flock(lock, fcntl.LOCK_EX) fcntl.flock(lock, fcntl.LOCK_EX)
......
...@@ -62,7 +62,6 @@ if __name__ == '__main__': ...@@ -62,7 +62,6 @@ if __name__ == '__main__':
else: else:
enabled_rulefiles[section.strip()]['filter'] = "" enabled_rulefiles[section.strip()]['filter'] = ""
# download / remove rules # download / remove rules
md = metadata.Metadata() md = metadata.Metadata()
dl = downloader.Downloader(target_dir=rule_source_directory) dl = downloader.Downloader(target_dir=rule_source_directory)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment