Don't include password in repr()
authorSybren A. Stüvel <sybren@stuvel.eu>
Fri, 3 Nov 2017 12:44:05 +0000 (13:44 +0100)
committerSybren A. Stüvel <sybren@stuvel.eu>
Fri, 3 Nov 2017 12:44:05 +0000 (13:44 +0100)
svnman/remote.py

index e26ab8f..0aee5f6 100644 (file)
@@ -26,7 +26,7 @@ class API(object):
 
     username: str = attr.ib(validator=attr.validators.instance_of(str))
     """Username for authenticating ourselves with the API."""
-    password: str = attr.ib(validator=attr.validators.instance_of(str))
+    password: str = attr.ib(validator=attr.validators.instance_of(str), repr=False)
     """Password for authenticating ourselves with the API."""
 
     _log = attrs_extra.log('%s.Remote' % __name__)