Skip to content

Commit

Permalink
Merge branch 'master' of ../bootchart2
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders Norgaard committed Mar 19, 2010
2 parents 3d2f331 + b740328 commit 3fb47d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pybootchartgui/draw.py
Expand Up @@ -107,7 +107,7 @@

# Convert ps process state to an int
def get_proc_state(flag):
return "RSDTZXW".index(flag) + 1
return "RSDTZXW".find(flag) + 1


def draw_text(ctx, text, color, x, y):
Expand Down

1 comment on commit 3fb47d0

@andersnorgaard
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aw, I killed my commit message which was "Use find, not index to avoid exeptions on unknow proces states. find matches javas indexOf; index, confusingly, doesnt. Worksaround https://bugs.launchpad.net/bugs/512172 "

Please sign in to comment.