Michael Merickel
2017-10-30 5705e13308b5e0f8e1f0c29c492c9cffe091726b
fix lint
4 files modified
8 ■■■■ changed files
pyramid/config/settings.py 2 ●●● patch | view | raw | blame | history
pyramid/path.py 2 ●●● patch | view | raw | blame | history
pyramid/util.py 2 ●●● patch | view | raw | blame | history
pyramid/view.py 2 ●●● patch | view | raw | blame | history
pyramid/config/settings.py
@@ -74,7 +74,7 @@
            value = eget(env_key, value)
        value = type_(value)
        d.update({k: value for k in keys})
    def O(settings_key, override_key):
    def O(settings_key, override_key):  # noqa: E743
        for key in expand_key(settings_key):
            d[key] = d[key] or d[override_key]
pyramid/path.py
@@ -73,7 +73,7 @@
        # will be the same: a directory name to the package itself
        try:
            package.__abspath__ = prefix
        except:
        except Exception:
            # this is only an optimization, ignore any error
            pass
    return prefix
pyramid/util.py
@@ -583,7 +583,7 @@
                if last_frame.function == 'extract_stack': # pragma: no cover
                    f.pop()
                info = ActionInfo(*f[-backframes])
            except: # pragma: no cover
            except Exception: # pragma: no cover
                info = ActionInfo(None, 0, '', '')
        self._ainfo.append(info)
        try:
pyramid/view.py
@@ -743,7 +743,7 @@
                    secure=secure,
                    request_iface=request_iface.combined,
                    )
            except:
            except Exception:
                if reraise:
                    reraise_(*exc_info)
                raise