Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit ac0105e

Browse files
author
Matthias Koeppe
committed
Filter out locale DeprecationWarning
1 parent 3e86d91 commit ac0105e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sage/all.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@
125125
message="'imghdr' is deprecated and slated for removal in Python 3.13",
126126
module='sphinx.util.images')
127127

128+
# triggered by docutils 0.19 on Python 3.11
129+
warnings.filterwarnings('ignore', category=DeprecationWarning,
130+
message=r"Use setlocale\(\), getencoding\(\) and getlocale\(\) instead",
131+
module='docutils.io')
132+
128133
################ end setup warnings ###############################
129134

130135

0 commit comments

Comments
 (0)