Skip to content

Commit 7079bdd

Browse files
committed
Unify quotes
1 parent 5c7c5e9 commit 7079bdd

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

Lib/importlib/_bootstrap_external.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -694,10 +694,10 @@ class WindowsRegistryFinder:
694694

695695
def __init__(self):
696696
import warnings
697-
warnings.warn("importlib.machinery.WindowsRegistryFinder is "
698-
"deprecated. Use site configuration instead. "
699-
"Future versions of Python may not enable this "
700-
"finder by default.",
697+
warnings.warn('importlib.machinery.WindowsRegistryFinder is '
698+
'deprecated. Use site configuration instead. '
699+
'Future versions of Python may not enable this '
700+
'finder by default.',
701701
DeprecationWarning, stacklevel=2)
702702

703703
@staticmethod

Lib/importlib/abc.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ class ResourceLoader(Loader):
7272

7373
def __init__(self):
7474
import warnings
75-
warnings.warn("importlib.abc.ResourceLoader is deprecated in "
76-
"favour of supporting resource loading through "
77-
"importlib.resources.abc.ResourceReader.",
75+
warnings.warn('importlib.abc.ResourceLoader is deprecated in '
76+
'favour of supporting resource loading through '
77+
'importlib.resources.abc.ResourceReader.',
7878
DeprecationWarning, stacklevel=2)
7979
super().__init__()
8080

@@ -209,8 +209,8 @@ class SourceLoader(_bootstrap_external.SourceLoader, ResourceLoader, ExecutionLo
209209
def path_mtime(self, path):
210210
"""Return the (int) modification time for the path (str)."""
211211
import warnings
212-
warnings.warn("SourceLoader.path_mtime is deprecated in favour of "
213-
"SourceLoader.path_stats().",
212+
warnings.warn('SourceLoader.path_mtime is deprecated in favour of '
213+
'SourceLoader.path_stats().',
214214
DeprecationWarning,
215215
stacklevel=2)
216216
if self.path_stats.__func__ is SourceLoader.path_stats:

Lib/importlib/machinery.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ def __getattr__(name):
3535
import warnings
3636

3737
if name == 'DEBUG_BYTECODE_SUFFIXES':
38-
warnings.warn("importlib.machinery.DEBUG_BYTECODE_SUFFIXES is "
39-
"deprecated. Use importlib.machinery.BYTECODE_SUFFIXES "
40-
"instead.",
38+
warnings.warn('importlib.machinery.DEBUG_BYTECODE_SUFFIXES is '
39+
'deprecated. Use importlib.machinery.BYTECODE_SUFFIXES '
40+
'instead.',
4141
DeprecationWarning, stacklevel=2)
4242
return _DEBUG_BYTECODE_SUFFIXES
4343
elif name == 'OPTIMIZED_BYTECODE_SUFFIXES':
44-
warnings.warn("importlib.machinery.OPTIMIZED_BYTECODE_SUFFIXES is "
45-
"deprecated. Use importlib.machinery.BYTECODE_SUFFIXES "
46-
"instead.",
44+
warnings.warn('importlib.machinery.OPTIMIZED_BYTECODE_SUFFIXES is '
45+
'deprecated. Use importlib.machinery.BYTECODE_SUFFIXES '
46+
'instead.',
4747
DeprecationWarning, stacklevel=2)
4848
return _OPTIMIZED_BYTECODE_SUFFIXES
4949

50-
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
50+
raise AttributeError(f'module {__name__!r} has no attribute {name!r}')

0 commit comments

Comments
 (0)