Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 1b07640

Browse files
author
Martin Patz
committed
docstrings all end with a dot
1 parent 7e01b0d commit 1b07640

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pywal/util.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def alpha_dec(self):
5050

5151
@property
5252
def octal(self):
53-
"""Export color in octal"""
53+
"""Export color in octal."""
5454
return "%s%s" % ("#", oct(int(self.hex_color[1:], 16))[2:])
5555

5656
@property
@@ -79,17 +79,17 @@ def blue(self):
7979
return "%.3f" % (hex_to_rgb(self.hex_color)[2]/255.)
8080

8181
def lighten(self, percent):
82-
"""Lighten color by percent"""
82+
"""Lighten color by percent."""
8383
percent = float(re.sub(r'[\D\.]', '', str(percent)))
8484
return Color(lighten_color(self.hex_color, percent / 100))
8585

8686
def darken(self, percent):
87-
"""Darken color by percent"""
87+
"""Darken color by percent."""
8888
percent = float(re.sub(r'[\D\.]', '', str(percent)))
8989
return Color(darken_color(self.hex_color, percent / 100))
9090

9191
def saturate(self, percent):
92-
"""Saturate a color"""
92+
"""Saturate a color."""
9393
percent = float(re.sub(r'[\D\.]', '', str(percent)))
9494
return Color(saturate_color(self.hex_color, percent / 100))
9595

@@ -108,7 +108,7 @@ def read_file_json(input_file):
108108

109109
def read_file_raw(input_file):
110110
"""Read data from a file as is, don't strip
111-
newlines or other special characters.."""
111+
newlines or other special characters."""
112112
with open(input_file, "r") as file:
113113
return file.readlines()
114114

0 commit comments

Comments
 (0)