Skip to content

Use dummy_threading if threading not available #11262

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 17, 2018
Merged
Show file tree
Hide file tree
Changes from all 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: 4 additions & 1 deletion lib/matplotlib/backends/backend_agg.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
* integrate screen dpi w/ ppi and text

"""
import threading
try:
import threading
except ImportError:
import dummy_threading as threading
import numpy as np
from collections import OrderedDict
from math import radians, cos, sin
Expand Down
5 changes: 4 additions & 1 deletion lib/matplotlib/font_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@
from pathlib import Path
import subprocess
import sys
from threading import Timer
try:
from threading import Timer
except ImportError:
from dummy_threading import Timer
import warnings

from matplotlib import afm, cbook, ft2font, rcParams, get_cachedir
Expand Down