summaryrefslogtreecommitdiff
path: root/plugins/externaltools/tools/functions.py
diff options
context:
space:
mode:
authorPatrick Monnerat <[email protected]>2019-05-23 20:42:23 +0200
committerraveit65 <[email protected]>2019-06-06 11:17:28 +0200
commit92faa11ef9e8af801713f12f8c205bd4fcf280b1 (patch)
tree9e358fe33e4b9ace989f62506a55f1df6631acd7 /plugins/externaltools/tools/functions.py
parentfd4405cc794d6fd3d560f06cfbaecca08e16a51e (diff)
downloadpluma-92faa11ef9e8af801713f12f8c205bd4fcf280b1.tar.bz2
pluma-92faa11ef9e8af801713f12f8c205bd4fcf280b1.tar.xz
externaltools plugin: change code for Python 2 & 3 compatibility.
Diffstat (limited to 'plugins/externaltools/tools/functions.py')
-rwxr-xr-xplugins/externaltools/tools/functions.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/externaltools/tools/functions.py b/plugins/externaltools/tools/functions.py
index dd4f82b2..e76689bd 100755
--- a/plugins/externaltools/tools/functions.py
+++ b/plugins/externaltools/tools/functions.py
@@ -18,8 +18,8 @@
import os
from gi.repository import Gio, Gdk, Gtk, GtkSource, Pluma
-from outputpanel import OutputPanel
-from capture import *
+from .outputpanel import OutputPanel
+from .capture import *
def default(val, d):
if val is not None:
@@ -131,8 +131,6 @@ def run_external_tool(window, panel, node):
elif input_type == 'selection' or input_type == 'selection-document':
try:
start, end = document.get_selection_bounds()
-
- print start, end
except ValueError:
if input_type == 'selection-document':
start, end = document.get_bounds()