Skip to content
Snippets Groups Projects
Commit 5c2e2095 authored by Ladislav Lhotka's avatar Ladislav Lhotka
Browse files

Fix Context::translate_pname method.

parent 39800a22
No related branches found
No related tags found
No related merge requests found
......@@ -180,7 +180,7 @@ class Context:
:param mid: identifier of the context module
"""
loc, nid = cls.resolve_pname(pname, mid)
return (loc, nid[0])
return (loc, cls.ns_map[nid[0]])
@classmethod
def sid2route(cls, sid: str, mid: ModuleId) -> SchemaRoute:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment