Skip to content

Commit ca3349d

Browse files
Put docstring into a single line
1 parent 3551eee commit ca3349d

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

API/help_funcs.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,14 @@ def __init__(self,
7171
self.encoder = encoder
7272

7373
def encode(self) -> bytes:
74-
"""
75-
Encode string for privacy and encryption.
76-
"""
74+
"""Encode string for privacy and encryption."""
7775
msg_bytes = self.message.encode(self.encoder)
7876
string_bytes = base64.b64encode(msg_bytes)
7977
string = string_bytes.decode(self.encoder)
8078
return string
8179

8280
def decode(self) -> bytes:
83-
"""
84-
Decode string for privacy and encryption.
85-
"""
81+
"""Decode string for privacy and encryption."""
8682
msg_bytes = self.message.encode(self.encoder)
8783
string_bytes = base64.b64decode(msg_bytes)
8884
string = string_bytes.decode(self.encoder)

WEB/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""
2-
this has all of imports and other init configs and other main
3-
"""
1+
"""this has all of imports and other init configs and other main"""
42
import warnings
53

64
from flask import *

WEB/help_funcs.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,15 @@
44

55

66
def encode(message: str) -> bytes:
7-
"""
8-
Encode string for privacy and encryption.
9-
"""
7+
"""Encode string for privacy and encryption."""
108
msg_bytes = message.encode("latin-1")
119
string_bytes = base64.b64encode(msg_bytes)
1210
string = string_bytes.decode("latin-1")
1311
return string
1412

1513

1614
def decode(message: str) -> bytes:
17-
"""
18-
Decode string for privacy and encryption.
19-
"""
15+
"""Decode string for privacy and encryption."""
2016
msg_bytes = message.encode("latin-1")
2117
string_bytes = base64.b64decode(msg_bytes)
2218
string = string_bytes.decode("latin-1")

0 commit comments

Comments
 (0)