diff --git a/django/contrib/gis/geos/libgeos.py b/django/contrib/gis/geos/libgeos.py index 05e5d1209b0..6963b786c8d 100644 --- a/django/contrib/gis/geos/libgeos.py +++ b/django/contrib/gis/geos/libgeos.py @@ -67,7 +67,7 @@ def notice_h(fmt, lst): warn_msg = fmt % lst except: warn_msg = fmt - logger.warn('GEOS_NOTICE: %s\n' % warn_msg) + logger.warning('GEOS_NOTICE: %s\n' % warn_msg) notice_h = NOTICEFUNC(notice_h) ERRORFUNC = CFUNCTYPE(None, c_char_p, c_char_p)