From f51f238be76bd0e16606fcb18d7517c9333067a2 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sun, 7 May 2017 22:40:06 +0200 Subject: [PATCH] Fix quoting in docstring. --- accountant/models/users.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/accountant/models/users.py b/accountant/models/users.py index bec0d00..a41b71f 100644 --- a/accountant/models/users.py +++ b/accountant/models/users.py @@ -28,7 +28,7 @@ from . import db class User(UserMixin, db.Model): - "Class used to handle users." + """Class used to handle users.""" # pylint: disable=invalid-name id = db.Column(db.Integer, primary_key=True) email = db.Column(db.String(200), nullable=False, unique=True, index=True) @@ -41,27 +41,27 @@ class User(UserMixin, db.Model): @classmethod def query(cls): - "Return a query for this class." + """Return a query for this class.""" return db.session.query(cls) @classmethod def hash_password(cls, password): - "Password hash function." + """Password hash function.""" return crypt.encrypt(password) def verify_password(self, password): - "Verify password passed in argument with the user's one." + """Verify password passed in argument with the user's one.""" return crypt.verify(password, self.password) def generate_auth_token(self): - "Generate authentication token used to identify the session." + """Generate authentication token used to identify the session.""" serializer = Serializer(app.secret_key) return serializer.dumps({'id': self.id}) @classmethod def verify_auth_token(cls, token): - "Verify the authentication token and return the associated user." + """Verify the authentication token and return the associated user.""" serializer = Serializer(app.config['SECRET_KEY']) try: