~ubuntu-branches/debian/experimental/spyder/experimental

« back to all changes in this revision

Viewing changes to spyderplugins/widgets/breakpointsgui.py

  • Committer: Package Import Robot
  • Author(s): Picca Frédéric-Emmanuel
  • Date: 2014-05-29 09:06:26 UTC
  • mfrom: (1.1.21) (18.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20140529090626-f58t82g0n5iewaxu
Tags: 2.3.0~rc+dfsg-1~experimental2
* Add spyder-common binary package for all the python2,3 common files
* debian/path
  - 0001-fix-documentation-installation.patch (deleted)
  + 0001-fix-spyderlib-path.patch (new)

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
# pylint: disable=R0911
13
13
# pylint: disable=R0201
14
14
 
15
 
from __future__ import with_statement
16
 
 
17
15
from spyderlib.qt.QtGui import (QWidget, QTableView, QItemDelegate,
18
16
                                QVBoxLayout, QMenu)
19
17
from spyderlib.qt.QtCore import (Qt, SIGNAL, QTextCodec,
46
44
    def set_data(self, data):
47
45
        """Set model data"""
48
46
        self._data = data
49
 
        keys = data.keys()
 
47
        keys = list(data.keys())
50
48
        self.breakpoints = []
51
49
        for key in keys:
52
50
            bp_list = data[key]
197
195
    
198
196
    def _load_all_breakpoints(self):
199
197
        bp_dict = CONF.get('run', 'breakpoints', {})
200
 
        for filename in bp_dict.keys():
 
198
        for filename in list(bp_dict.keys()):
201
199
            if not osp.isfile(filename):
202
200
                bp_dict.pop(filename)
203
201
        return bp_dict