Changeset - b075693b3214
[Not reviewed]
default
0 1 0
Mads Kiilerich - 6 years ago 2019-11-24 21:40:05
mads@kiilerich.com
Grafted from: f7d384708836
pygrack: address webob AcceptValidHeader DeprecationWarning

Got warnings like:
kallithea/tests/other/test_vcs_operations.py::TestVCSOperations::test_yada_yada
.../site-packages/webob/acceptparse.py:649: DeprecationWarning: The behavior of AcceptValidHeader.__contains__ is currently being maintained for backward compatibility, but it will change in the future to better conform to the RFC.
DeprecationWarning,

There *must* be a better alternative to pygrack ... for now, let's keep it alive.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/middleware/pygrack.py
Show inline comments
 
@@ -186,7 +186,7 @@ class GitRepository(object):
 
        _path = self._get_fixedpath(req.path_info)
 
        if _path.startswith('info/refs'):
 
            app = self.inforefs
 
        elif [a for a in self.valid_accepts if a in req.accept]:
 
        elif req.accept.acceptable_offers(self.valid_accepts):
 
            app = self.backend
 
        try:
 
            resp = app(req, environ)
0 comments (0 inline, 0 general)