Pep8
This commit is contained in:
parent
6e11fd7aff
commit
26610a709e
@ -14,7 +14,7 @@ VERSION = "0.4.0 (devel)"
|
|||||||
"""Version number"""
|
"""Version number"""
|
||||||
|
|
||||||
# __pragma__ ('skip')
|
# __pragma__ ('skip')
|
||||||
js_undefined = 0 # Prevent complaints by optional static checker
|
js_undefined = 0 # Prevent complaints by optional static checker
|
||||||
# __pragma__ ('noskip')
|
# __pragma__ ('noskip')
|
||||||
|
|
||||||
|
|
||||||
@ -199,7 +199,7 @@ class OOMEntity(object):
|
|||||||
|
|
||||||
if cols_to_strip:
|
if cols_to_strip:
|
||||||
# [-1] slicing needs Transcrypt operator overloading
|
# [-1] slicing needs Transcrypt operator overloading
|
||||||
line = line.split(" ", cols_to_strip)[-1] # __:opov
|
line = line.split(" ", cols_to_strip)[-1] # __:opov
|
||||||
|
|
||||||
# OOMs logged to /var/log/messages / journalctl may contain
|
# OOMs logged to /var/log/messages / journalctl may contain
|
||||||
# "kernel:" at the begin of the content
|
# "kernel:" at the begin of the content
|
||||||
@ -462,7 +462,7 @@ class OOMAnalyser(object):
|
|||||||
self.REC_PAGEINFO,
|
self.REC_PAGEINFO,
|
||||||
self.REC_PID_KERNELVERSION,
|
self.REC_PID_KERNELVERSION,
|
||||||
self.REC_SWAP,
|
self.REC_SWAP,
|
||||||
]:
|
]:
|
||||||
match = rec.search(self.oom_entity.text)
|
match = rec.search(self.oom_entity.text)
|
||||||
if match:
|
if match:
|
||||||
self.results.update(match.groupdict())
|
self.results.update(match.groupdict())
|
||||||
@ -685,7 +685,6 @@ class OOMAnalyser(object):
|
|||||||
self.results['system_total_ram_used_kb'] /
|
self.results['system_total_ram_used_kb'] /
|
||||||
self.results['system_total_ram_kb'])
|
self.results['system_total_ram_kb'])
|
||||||
|
|
||||||
|
|
||||||
def _determinate_platform_and_distribution(self):
|
def _determinate_platform_and_distribution(self):
|
||||||
"""Determinate platform and distribution"""
|
"""Determinate platform and distribution"""
|
||||||
kernel_version = self.results.get('kernel_version', '')
|
kernel_version = self.results.get('kernel_version', '')
|
||||||
|
Loading…
Reference in New Issue
Block a user