Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MNT: Remove dummy_threading because threading is always available#23073

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tacaswell merged 1 commit intomatplotlib:mainfromgreglucas:rm-dummy-threading
May 19, 2022
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletionslib/matplotlib/backends/backend_agg.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -21,12 +21,9 @@
.. _Anti-Grain Geometry: http://agg.sourceforge.net/antigrain.com
"""

try:
import threading
except ImportError:
import dummy_threading as threading
from contextlib import nullcontext
from math import radians, cos, sin
import threading

import numpy as np

Expand Down
9 changes: 2 additions & 7 deletionslib/matplotlib/font_manager.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -36,12 +36,7 @@
import re
import subprocess
import sys
try:
import threading
from threading import Timer
except ImportError:
import dummy_threading as threading
from dummy_threading import Timer
import threading

import matplotlib as mpl
from matplotlib import _api, _afm, cbook, ft2font, rcParams
Expand DownExpand Up@@ -1100,7 +1095,7 @@ def __init__(self, size=None, weight='normal'):
self.ttflist = []

# Delay the warning by 5s.
timer = Timer(5, lambda: _log.warning(
timer =threading.Timer(5, lambda: _log.warning(
'Matplotlib is building the font cache; this may take a moment.'))
timer.start()
try:
Expand Down
5 changes: 1 addition & 4 deletionslib/matplotlib/pyplot.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -43,11 +43,8 @@
from numbers import Number
import re
import sys
import threading
import time
try:
import threading
except ImportError:
import dummy_threading as threading

from cycler import cycler
import matplotlib
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp