From 3192adb8e5aea2545064072ea0a3d56b8305c5a1 Mon Sep 17 00:00:00 2001 From: boilpy Date: Wed, 31 Aug 2022 10:16:40 -0500 Subject: [PATCH] feat: add i18n --- src/pipupgrade/semver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pipupgrade/semver.py b/src/pipupgrade/semver.py index 55b45f1..b7a01ab 100644 --- a/src/pipupgrade/semver.py +++ b/src/pipupgrade/semver.py @@ -1,5 +1,6 @@ # imports - compatibility imports from bpyutils._compat import cmp +from bpyutils import _ # imports - standard imports import re @@ -86,6 +87,6 @@ def difference(a, b): if cmp(va[key], vb[key]): return key - raise NotImplementedError("Unknown difference between {} and {}".format(a, b)) + raise NotImplementedError(_("Unknown difference between {} and {}".format(a, b))) else: return None \ No newline at end of file