# HG changeset patch # User Goffi # Date 1519891476 -3600 # Node ID 516bf5309517d07febd136b852da9afb25328141 # Parent 8e770ac05b0c621838a83c604ba388acc3ccd448 plugin XEP-0054: removed Image.ANTIALIAS filter: Image.ANTIALIAS filter is not needed anymore in Pillow: http://pillow.readthedocs.io/en/3.0.x/releasenotes/2.7.0.html#default-filter-for-thumbnails diff -r 8e770ac05b0c -r 516bf5309517 src/memory/cache.py --- a/src/memory/cache.py Wed Feb 28 18:28:39 2018 +0100 +++ b/src/memory/cache.py Thu Mar 01 09:04:36 2018 +0100 @@ -70,7 +70,6 @@ except IOError: log.warning(u"can't read cache at {}".format(cache_url)) return None - except pickle.UnpicklingError: log.warning(u'invalid cache found at {}'.format(cache_url)) return None diff -r 8e770ac05b0c -r 516bf5309517 src/plugins/plugin_xep_0054.py --- a/src/plugins/plugin_xep_0054.py Wed Feb 28 18:28:39 2018 +0100 +++ b/src/plugins/plugin_xep_0054.py Thu Mar 01 09:04:36 2018 +0100 @@ -445,7 +445,7 @@ return Failure(exceptions.DataError(u"Can't open image")) if img.size != AVATAR_DIM: - img.thumbnail(AVATAR_DIM, Image.ANTIALIAS) + img.thumbnail(AVATAR_DIM) if img.size[0] != img.size[1]: # we need to crop first left, upper = (0, 0) right, lower = img.size