Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: spec_finder.py #89

Closed
wants to merge 10 commits into from
4 changes: 4 additions & 0 deletions spec_finder.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
#!/usr/bin/env python
import logging
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would personally not introduce the logging module. It's too heavy weight for CLI output, imo.

import urllib.request
import json
import re
import difflib
import os
import sys

# Configure logging
logging.basicConfig(level=logging.INFO, format='%(levelname)s: %(message)s')

def _demarkdown(t):
"""Remove markdown-like formatting from text."""
return t.replace('**', '').replace('`', '').replace('"', '')
Expand Down