diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-06-26 05:33:56 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-06-26 05:34:00 +0200 |
commit | e522d0174a33dbac2f7a9a52e7006ee864f5067e (patch) | |
tree | 001051690dee940955f3c9a932be3b971858b239 /src | |
parent | m fix bug (diff) | |
download | argparser-e522d0174a33dbac2f7a9a52e7006ee864f5067e.tar.gz argparser-e522d0174a33dbac2f7a9a52e7006ee864f5067e.tar.bz2 argparser-e522d0174a33dbac2f7a9a52e7006ee864f5067e.tar.xz |
m fix bug
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/argparser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/argparser.py b/src/argparser.py index c5f2db6..7a2cafd 100644 --- a/src/argparser.py +++ b/src/argparser.py @@ -80,7 +80,7 @@ class ArgParser(): pid = os.readlink('/proc/self') lvl = levels while lvl > 0: - with open('/proc/%d/status' % pid, 'r') as file: + with open('/proc/%s/status' % pid, 'r') as file: lines = file.readlines() found = False for line in lines: |