Skip to content

Commit

Permalink
small changes in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
bexxmodd committed Jan 23, 2021
1 parent 7733c1f commit 7f216df
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/disks.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
class DiskUsage:
"""
Personalize and visualize the disk space usage in the terminal
options:
barh: visualize values as a horizontal bar
barv: visualiz disk space as a vertical bar
pie: visualize as a pie charts
"""

def __init__(self,
Expand All @@ -30,7 +25,7 @@ def __init__(self,
self.exclude = exclude
self.details = details
self.every = every
self.platform = platform.system() # Check on which platform vizex operates
self._platform = platform.system() # Check on which platform vizex operates

def print_charts(self, options: Options=None) -> None:
"""Prints the charts based on user selection type"""
Expand Down Expand Up @@ -94,7 +89,7 @@ def grab_partitions(self,
disks = {}

# If we don't need every part we grab root seperately
if not every and self.platform != 'Windows':
if not every and self._platform != 'Windows':
disks['root'] = self.grab_root()
disk_parts = psutil.disk_partitions(all=every)

Expand Down

0 comments on commit 7f216df

Please sign in to comment.