From 36e312ba7b6b3e9e48395a387e59eaad3a3d1d78 Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Sat, 15 Aug 2020 21:20:12 +0200 Subject: [PATCH] Use new API in cli --- relational_readline/linegui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relational_readline/linegui.py b/relational_readline/linegui.py index 872c996..db04f5e 100644 --- a/relational_readline/linegui.py +++ b/relational_readline/linegui.py @@ -137,7 +137,7 @@ def load_relation(filename: str, defname:Optional[str]=None) -> Optional[str]: "%s is not a valid relation name" % defname, ERROR_COLOR), file=sys.stderr) return None try: - relations[defname] = relation.Relation(filename) + relations[defname] = relation.Relation.load(filename) completer.add_completion(defname) printtty(colorize("Loaded relation %s" % defname, COLOR_GREEN))