Renamed remote.Remote to remote.API to prevent stutter.
authorSybren A. Stüvel <sybren@stuvel.eu>
Fri, 3 Nov 2017 12:43:09 +0000 (13:43 +0100)
committerSybren A. Stüvel <sybren@stuvel.eu>
Fri, 3 Nov 2017 12:43:09 +0000 (13:43 +0100)
svnman/__init__.py
svnman/remote.py

index 22dd480..466905f 100644 (file)
@@ -22,7 +22,7 @@ class SVNManExtension(PillarExtension):
         from . import remote
 
         self._log = logging.getLogger('%s.SVNManExtension' % __name__)
-        self.remote: remote.Remote = None
+        self.remote: remote.API = None
 
     @property
     def name(self):
@@ -74,7 +74,7 @@ class SVNManExtension(PillarExtension):
     def setup_app(self, app):
         from . import remote
 
-        self.remote = remote.Remote(
+        self.remote = remote.API(
             remote_url=app.config['SVNMAN_API_URL'],
             username=app.config['SVNMAN_API_USERNAME'],
             password=app.config['SVNMAN_API_PASSWORD'],
index 78d1503..2921e20 100644 (file)
@@ -13,7 +13,7 @@ class RepoDescription(object):
 
 
 @attr.s
-class Remote(object):
+class API(object):
     # The remote URL and credentials are separate. This way we can log the
     # URL that is used in requests without worrying about leaking creds.
     remote_url: str = attr.ib(validator=attr.validators.instance_of(str))