Format function names according to Pylint
authorBen Steffen <bds@mit.edu>
Tue, 26 Nov 2019 05:21:53 +0000 (00:21 -0500)
committerBen Steffen <bds@mit.edu>
Tue, 26 Nov 2019 05:21:53 +0000 (00:21 -0500)
python/invirt/authz.py

index ed25074..34f53c8 100644 (file)
@@ -14,13 +14,13 @@ import pkg_resources
 from invirt.config import structs as cfg
 
 
-def expandOwner(name):
+def expand_owner(name):
     """Expand an "owner" to a list of authorized users."""
     for ep in pkg_resources.iter_entry_points('invirt.authz', cfg.authz.name):
         return ep.load().expandOwner(name)
 
 
-def expandAdmin(name):
+def expand_admin(name):
     """Expand an "administrator" to a list of authorized users."""
     for ep in pkg_resources.iter_entry_points('invirt.authz', cfg.authz.name):
         return ep.load().expandAdmin(name)