summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurie Clark-Michalek <bluepeppers@archlinux.us>2010-11-18 17:08:20 +0000
committerLaurie Clark-Michalek <bluepeppers@archlinux.us>2010-11-18 17:08:20 +0000
commitc1de733df7d60518a5309d3602e8e8e601bf87af (patch)
treed7164c3321d317952b73fc053b03bb7f20618105
parent27b9b0cb00bb3912964e8e24b86d310e44e9f35d (diff)
Converted classes to new style classes.
Old style classes (with out a pair of brackets at the end of their name) are due to be depreciated some time in the future.
-rw-r--r--archey.new22
1 files changed, 11 insertions, 11 deletions
diff --git a/archey.new b/archey.new
index d5d3450..2f7a77d 100644
--- a/archey.new
+++ b/archey.new
@@ -108,7 +108,7 @@ processes = str(subprocess.check_output(('ps', '-u', getuser(), '-o', 'comm',
#---------------Classes---------------#
-class Output:
+class Output():
results = []
results.extend(['']*(13))
@@ -127,7 +127,7 @@ class Output:
def output(self):
print(logosDict[self.distro].format(color = colorDict[self.distro], results = self.results))
-class User:
+class User():
def __init__(self):
self.key = 'User'
self.value = os.getenv('USER')
@@ -141,7 +141,7 @@ class User:
#class Kernel:
# def __init__(self):
-class Uptime:
+class Uptime():
def __init__(self):
fuptime = int(open('/proc/uptime').read().split('.')[0])
day = int(fuptime / 86400)
@@ -158,7 +158,7 @@ class Uptime:
self.key = 'Uptime'
self.value = uptime
-class WindowManager:
+class WindowManager():
def __init__(self):
wm = ''
for key in wmDict.keys():
@@ -169,7 +169,7 @@ class WindowManager:
self.key = 'Window Manager'
self.value = wm
-class DesktopEnvironment:
+class DesktopEnvironment():
def __init__(self):
de = ''
for key in deDict.keys():
@@ -180,26 +180,26 @@ class DesktopEnvironment:
self.key = 'Desktop Environment'
self.value = de
-class Shell:
+class Shell():
def __init__(self):
self.key = 'Shell'
self.value = os.getenv('SHELL')
-class Terminal:
+class Terminal():
def __init__(self):
self.key = 'Terminal'
self.value = os.getenv('TERM')
-#class Packages:
+#class Packages():
# def __init__(self):
-#class CPU:
+#class CPU():
# def __init__(self):
-#class RAM:
+#class RAM():
# def __init__(self):
-#class Disk:
+#class Disk():
# def __init__(self):