Correct some minor PEP8 error

pull/814/head
nicolargo 2016-03-13 16:57:16 +01:00
parent 621278b110
commit f863ec5ece
3 changed files with 5 additions and 2 deletions

View File

@ -106,7 +106,7 @@ class Export(GlancesExport):
"_source": { "_source": {
"value": str(p), "value": str(p),
"timestamp": datetime.now() "timestamp": datetime.now()
} }
} }
actions.append(action) actions.append(action)

View File

@ -307,7 +307,7 @@ class _GlancesCurses(object):
self.args.disable_swap = False self.args.disable_swap = False
elif self.pressedkey == ord('5'): elif self.pressedkey == ord('5'):
# '5' > Enable/disable top menu # '5' > Enable/disable top menu
logger.info(self.args.disable_top ) logger.info(self.args.disable_top)
self.args.disable_top = not self.args.disable_top self.args.disable_top = not self.args.disable_top
if self.args.disable_top: if self.args.disable_top:
self.args.disable_quicklook = True self.args.disable_quicklook = True

View File

@ -9,6 +9,7 @@ if sys.version_info < (2, 6) or (3, 0) <= sys.version_info < (3, 3):
print('Glances requires at least Python 2.6 or 3.3 to run.') print('Glances requires at least Python 2.6 or 3.3 to run.')
sys.exit(1) sys.exit(1)
class tests(Command): class tests(Command):
user_options = [] user_options = []
@ -27,6 +28,7 @@ class tests(Command):
raise SystemExit(ret) raise SystemExit(ret)
raise SystemExit(0) raise SystemExit(0)
def get_data_files(): def get_data_files():
data_files = [ data_files = [
('share/doc/glances', ['AUTHORS', 'COPYING', 'NEWS', 'README.rst', ('share/doc/glances', ['AUTHORS', 'COPYING', 'NEWS', 'README.rst',
@ -36,6 +38,7 @@ def get_data_files():
return data_files return data_files
def get_requires(): def get_requires():
requires = ['psutil>=2.0.0'] requires = ['psutil>=2.0.0']
if sys.platform.startswith('win'): if sys.platform.startswith('win'):