From: "Gudjon I. Gudjonsson" <gudjon@gudjon.org>
Date: Sat, 24 Aug 2019 11:00:00 +0200
Subject: asttoken

Fixes import from Debian asttokens module

Last-Update: 2019-12-15
---
 eric/eric6/UI/PythonAstViewer.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/eric/eric6/UI/PythonAstViewer.py b/eric/eric6/UI/PythonAstViewer.py
index e91b69d..ca75dfa 100644
--- a/eric/eric6/UI/PythonAstViewer.py
+++ b/eric/eric6/UI/PythonAstViewer.py
@@ -16,7 +16,10 @@ from PyQt5.QtWidgets import (
     QTreeWidget, QTreeWidgetItem, QAbstractItemView, QWidget, QVBoxLayout
 )
 
-from ThirdParty.asttokens.asttokens import ASTTokens
+try:
+    from ThirdParty.asttokens.asttokens import ASTTokens
+except:
+    from asttokens.asttokens import ASTTokens
 
 from E5Gui.E5OverrideCursor import E5OverrideCursor
 
