Skip to content

Commit

Permalink
Fix codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
lexover committed Jun 17, 2018
1 parent 0018a11 commit 65463c7
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions psrecord/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,6 @@ def all_children(pr):
processes += all_children(child)
return processes


def is_uss_possible(process):
try:
process.memory_full_info()
return True
except AttributeError:
print ("Flag --uss is ignored. Not found method memory_full_info()")
return False


def main():

parser = argparse.ArgumentParser(
Expand Down Expand Up @@ -141,7 +131,7 @@ def monitor(pid, logfile=None, plot=None, duration=None, interval=None,
pr.memory_full_info()
uss = True
except AttributeError:
print ("Flag --uss is ignored. Not found memory_full_info()")
print("Flag --uss is ignored. Not found memory_full_info()")
uss = False

# Record start time
Expand Down

0 comments on commit 65463c7

Please sign in to comment.