Skip to content

Commit 71e4a3c

Browse files
authored
Merge pull request #1 from europa502/support_python2.6
making mprof.py compatible with python 2.6
2 parents 6cdae0e + 258a580 commit 71e4a3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mprof.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ def set_state_for(function_names, level):
743743
if len(ambiguous_labels) == 0:
744744
break
745745

746-
fn_to_label = { label_state["functions"][0] : label for label, label_state in state.items() }
746+
fn_to_label = dict((label_state["functions"][0] , label) for label, label_state in state.items())
747747

748748
return fn_to_label
749749

0 commit comments

Comments
 (0)