summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosias <me@josias.dev>2021-10-24 14:17:59 -0700
committerJosias <me@josias.dev>2021-10-24 14:17:59 -0700
commit7fefb7a9f5d8e7560942d093c0fc56c938a8ac06 (patch)
tree83841727cbc334ccc9ab9abb106dc4d3b8554d2a
parent68ca4e2cc673885f3e46b6eadc5f27beeaae315a (diff)
Make docstrings single-line
-rwxr-xr-xgmi2rss12
1 files changed, 3 insertions, 9 deletions
diff --git a/gmi2rss b/gmi2rss
index 8a1ac09..c0ecbf5 100755
--- a/gmi2rss
+++ b/gmi2rss
@@ -13,15 +13,11 @@ import sys
from feedgen.feed import FeedGenerator
def find_links(document):
- """
- Returns an array of all link lines in a gemtext document
- """
+ """Returns an array of all link lines in a gemtext document"""
return [line for line in document.split('\n') if line.startswith('=> ')]
def parse_feed_link(line):
- """
- Parses a feed link line into its link, date, and title
- """
+ """Parses a feed link line into its link, date, and title"""
if not is_feed_link(line):
raise ValueError("Line not a valid feed link")
@@ -33,9 +29,7 @@ def parse_feed_link(line):
}
def is_feed_link(line):
- """
- Determines whether or not the link line is a valid gemini feed link
- """
+ """Determines whether or not the link line is a valid gemini feed link"""
if not line.startswith("=>"):
return False