Syntax enhancements

Did some syntax improvement by:
-Removing extraneous parentheses.
-Collapsing "if" statements.
-Used set literal notation.
-Fixed pep8 issue

Change-Id: I321536058a76bf69af1d6b38d37f81a07a2f7108
Closes-Bug: #1397027
This commit is contained in:
Ricardo Ferreira
2015-03-10 23:18:09 +00:00
parent 7a29e9de10
commit f2ee58b00c
20 changed files with 29 additions and 31 deletions

View File

@@ -63,7 +63,7 @@ def read_cached_file(filename, force_reload=False):
cache_info['data'] = fap.read()
cache_info['mtime'] = mtime
reloaded = True
return (reloaded, cache_info['data'])
return reloaded, cache_info['data']
def delete_cached_file(filename):