Skip to content

Commit

Permalink
feat: add i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
achillesrasquinha committed Aug 31, 2022
1 parent 7dd8d5e commit 3192adb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pipupgrade/semver.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# imports - compatibility imports
from bpyutils._compat import cmp
from bpyutils import _

# imports - standard imports
import re
Expand Down Expand Up @@ -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

0 comments on commit 3192adb

Please sign in to comment.