ajenti / ajenti

Re-defined variable from outer scope PYL-W0621
Anti-pattern
Major
6 months ago4 years old
Redefining name 'handle_ajenti_process' from outer scope (line 16)
 29    print("\n--> Ajenti stopped")
 30
 31class TestBasicHttp:
 32    def test_identity(self, handle_ajenti_process): 33        rq = requests.get(url)
 34        assert rq.status_code == 200
 35        assert 'x-auth-identity' in rq.headers
Redefining name 'time' from outer scope (line 7)
 84    @post(r'/api/datetime/time/(?P<time>\d+)')
 85    @authorize('datetime:write')
 86    @endpoint(api=True)
 87    def handle_api_time_set(self, http_context, time=None): 88        """
 89        Set time on the server through date command.
 90
Redefining name 'skip' from outer scope (line 57)
 54intersphinx_mapping = {'http://docs.python.org/': None}
 55
 56
 57def skip(app, what, name, obj, skip, options): 58    for x in ['all', 'any', 'classes', 'implementations']:
 59        if hasattr(obj, x):
 60            try:
Redefining name 'method' from outer scope (line 61)
 23        return f
 24    return decorator
 25
 26def requests_decorator_generator(method): 27    """
 28    Factorization to generate request decorators like @get or @post.
 29