diff -ur speaklater-1.3/speaklater.py speaklater-1.3.py3/speaklater.py --- speaklater-1.3/speaklater.py 2021-10-03 10:22:23.408073708 +0200 +++ speaklater-1.3.py3/speaklater.py 2021-10-03 10:23:31.739305370 +0200 @@ -40,10 +40,10 @@ >>> l.translations = {u'Yes': 'Ja'} >>> lazy_gettext = make_lazy_gettext(lambda: l.translations.get) >>> yes = lazy_gettext(u'Yes') - >>> print yes + >>> print(yes) Ja >>> l.translations[u'Yes'] = 'Si' - >>> print yes + >>> print(yes) Si Lazy strings are no real strings so if you pass this sort of string to @@ -117,11 +117,11 @@ def __contains__(self, key): return key in self.value - def __nonzero__(self): + def __bool__(self): return bool(self.value) def __dir__(self): - return dir(unicode) + return dir(str) def __iter__(self): return iter(self.value) @@ -132,9 +132,6 @@ def __str__(self): return str(self.value) - def __unicode__(self): - return unicode(self.value) - def __add__(self, other): return self.value + other