Skip to content

Commit 7d9a5ea

Browse files
authored
Merge pull request #186 from Programmer-RD-AI/deepsource-fix-8fd83cb7
Put docstring into a single line
2 parents 3551eee + 92a0465 commit 7d9a5ea

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

API/help_funcs.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class Help_Funcs:
1212
argument -- description
1313
Return: return_description
1414
"""
15+
1516
def send_email(subject: str, message: str, reviver: str) -> bool:
1617
"""sumary_line
1718
@@ -71,18 +72,14 @@ def __init__(self,
7172
self.encoder = encoder
7273

7374
def encode(self) -> bytes:
74-
"""
75-
Encode string for privacy and encryption.
76-
"""
75+
"""Encode string for privacy and encryption."""
7776
msg_bytes = self.message.encode(self.encoder)
7877
string_bytes = base64.b64encode(msg_bytes)
7978
string = string_bytes.decode(self.encoder)
8079
return string
8180

8281
def decode(self) -> bytes:
83-
"""
84-
Decode string for privacy and encryption.
85-
"""
82+
"""Decode string for privacy and encryption."""
8683
msg_bytes = self.message.encode(self.encoder)
8784
string_bytes = base64.b64decode(msg_bytes)
8885
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)