Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix import jedi #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gedi.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os
import tempfile
import subprocess
import jedi

from jedi.api import Script
from gi.repository import GObject, Gedit, Gtk, GtkSource

#FIXME: find real icon names
Expand All @@ -20,7 +20,7 @@ def get_script(document):
linenum = iter_cursor.get_line() + 1
charnum = iter_cursor.get_line_index()

return Script(doc_text, linenum, charnum, document.get_uri_for_display())
return jedi.api.Script(doc_text, linenum, charnum, document.get_uri_for_display())


class GediPlugin(GObject.Object, Gedit.ViewActivatable):
Expand Down