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

« back to all changes in this revision

Viewing changes to spyderlib/plugins/explorer.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:
22
22
from spyderlib.utils.qthelpers import create_action
23
23
from spyderlib.widgets.explorer import ExplorerWidget
24
24
from spyderlib.plugins import SpyderPluginMixin
 
25
from spyderlib.py3compat import to_text_string
25
26
 
26
27
 
27
28
class Explorer(ExplorerWidget, SpyderPluginMixin):
74
75
                     self.main.editor.new)
75
76
        self.connect(self, SIGNAL("run(QString)"),
76
77
                     lambda fname:
77
 
                     self.main.open_external_console(unicode(fname),
78
 
                                         osp.dirname(unicode(fname)),
 
78
                     self.main.open_external_console(to_text_string(fname),
 
79
                                         osp.dirname(to_text_string(fname)),
79
80
                                         '', False, False, True, '', False))
80
81
        # Signal "set_explorer_cwd(QString)" will refresh only the
81
82
        # contents of path passed by the signal in explorer: