Skip to content

Commit

Permalink
Merge pull request #39 from adw0rd/master
Browse files Browse the repository at this point in the history
Fixed a writer the duplicate breakpoints when working with Django
  • Loading branch information
inducer committed Jun 16, 2012
2 parents b32b4e5 + 7808883 commit 63f1e63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pudb/settings.py
Expand Up @@ -400,8 +400,9 @@ def save_breakpoints(bp_list):
from os.path import join
bp_histfile = join(get_save_config_path(), "saved-breakpoints")
histfile = open(bp_histfile, 'w')
bp_list = set([(bp.file, bp.line) for bp in bp_list])
for bp in bp_list:
histfile.write("b %s:%d\n"%(bp.file, bp.line))
histfile.write("b %s:%d\n" % (bp[0], bp[1]))
histfile.close()

# }}}
Expand Down

0 comments on commit 63f1e63

Please sign in to comment.