mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Tests: fix import error after refactoring
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from _pydevd_bundle.pydevd_constants import dict_contains
|
||||
import sys
|
||||
from _pydevd_bundle import pydevd_vars
|
||||
from _pydevd_bundle import pydevd_xml
|
||||
from os.path import basename
|
||||
import traceback
|
||||
try:
|
||||
@@ -72,7 +72,7 @@ def get_referrer_info(searched_obj):
|
||||
ret = ['<xml>\n']
|
||||
|
||||
ret.append('<for>\n')
|
||||
ret.append(pydevd_vars.var_to_xml(
|
||||
ret.append(pydevd_xml.var_to_xml(
|
||||
searched_obj,
|
||||
'Skipping getting referrers for None',
|
||||
additionalInXml=' id="%s"' % (id(searched_obj),)))
|
||||
@@ -93,7 +93,7 @@ def get_referrer_info(searched_obj):
|
||||
ret = ['<xml>\n']
|
||||
|
||||
ret.append('<for>\n')
|
||||
ret.append(pydevd_vars.var_to_xml(
|
||||
ret.append(pydevd_xml.var_to_xml(
|
||||
searched_obj,
|
||||
'Exception raised while trying to get_referrers.',
|
||||
additionalInXml=' id="%s"' % (id(searched_obj),)))
|
||||
@@ -123,7 +123,7 @@ def get_referrer_info(searched_obj):
|
||||
if DEBUG:
|
||||
sys.stderr.write('Searching Referrers of obj with id="%s"\n' % (obj_id,))
|
||||
|
||||
ret.append(pydevd_vars.var_to_xml(
|
||||
ret.append(pydevd_xml.var_to_xml(
|
||||
searched_obj,
|
||||
'Referrers of obj with id="%s"' % (obj_id,)))
|
||||
ret.append('</for>\n')
|
||||
@@ -200,9 +200,9 @@ def get_referrer_info(searched_obj):
|
||||
if found_as:
|
||||
if not isinstance(found_as, str):
|
||||
found_as = str(found_as)
|
||||
found_as = ' found_as="%s"' % (pydevd_vars.make_valid_xml_value(found_as),)
|
||||
found_as = ' found_as="%s"' % (pydevd_xml.make_valid_xml_value(found_as),)
|
||||
|
||||
ret.append(pydevd_vars.var_to_xml(
|
||||
ret.append(pydevd_xml.var_to_xml(
|
||||
r,
|
||||
representation,
|
||||
additionalInXml=' id="%s"%s' % (r_id, found_as)))
|
||||
@@ -225,7 +225,7 @@ def get_referrer_info(searched_obj):
|
||||
ret = ['<xml>\n']
|
||||
|
||||
ret.append('<for>\n')
|
||||
ret.append(pydevd_vars.var_to_xml(
|
||||
ret.append(pydevd_xml.var_to_xml(
|
||||
searched_obj,
|
||||
'Error getting referrers for:',
|
||||
additionalInXml=' id="%s"' % (id(searched_obj),)))
|
||||
|
||||
Reference in New Issue
Block a user