summaryrefslogtreecommitdiff
path: root/bootstrap.py
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2022-02-03 14:18:37 -0800
committerScott Gasch <[email protected]>2022-02-03 14:18:37 -0800
commit713a609bd19d491de03debf8a4a6ddf2540b13dc (patch)
tree6593978162d3c11c3a54e44a770aded4abc79704 /bootstrap.py
parenteb1c6392095947b3205c4d52cd9b1507e6cd776b (diff)
Change settings in flake8 and black.
Diffstat (limited to 'bootstrap.py')
-rw-r--r--bootstrap.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/bootstrap.py b/bootstrap.py
index 035a38e..c89952a 100644
--- a/bootstrap.py
+++ b/bootstrap.py
@@ -124,9 +124,7 @@ class ImportInterceptor(importlib.abc.MetaPathFinder):
return 'importlib' in filename or 'six.py' in filename
def find_module(self, fullname, path):
- raise Exception(
- "This method has been deprecated since Python 3.4, please upgrade."
- )
+ raise Exception("This method has been deprecated since Python 3.4, please upgrade.")
def find_spec(self, loaded_module, path=None, target=None):
s = stack()
@@ -230,10 +228,7 @@ def initialize(entry_point):
# Try to figure out the name of the program entry point. Then
# parse configuration (based on cmdline flags, environment vars
# etc...)
- if (
- '__globals__' in entry_point.__dict__
- and '__file__' in entry_point.__globals__
- ):
+ if '__globals__' in entry_point.__dict__ and '__file__' in entry_point.__globals__:
config.parse(entry_point.__globals__['__file__'])
else:
config.parse(None)