Stripped CPU string from white-spaces around

This commit is contained in:
Dionisio E Alonso 2015-04-08 09:46:56 -03:00
parent 2a916b5b4b
commit 8b23c6d977
1 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ def get_registry_value(key, subkey, value):
class SystemInformation:
def __init__(self):
self.cpu = 'CPU:\t{}'.format(self._cpu())
self.cpu = 'CPU:\t{}'.format(self._cpu().strip())
self.graphics = 'Video:\t{}'.format(self._graphics())
self.totalRam, self.availableRam = self._ram()
self.ram = 'RAM:\t{:.2f}GB total'.format(self.totalRam/(1024**3))
@ -121,8 +121,8 @@ class SystemInformation:
def save(self):
with open('system_information.txt', 'w') as f:
f.write('System Information\n')
f.write('==================\n\n')
f.write('System Information\n'
'==================\n\n')
f.write(self.cpu + '\n')
f.write(self.graphics + '\n')
f.write(self.ram + '\n')