This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!python3 | |
""" | |
Usage: roman_to_number.py [-v] <roman_number> | |
Read a roman number (e.g. CDXCVII) and print its base10 value (e.g. 497). | |
Options: | |
-v Show computation steps and error details | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import smtplib | |
from email.mime.text import MIMEText | |
from . import app | |
def send(recipients, subject, body): | |
# Destination override | |
if app.config['EMAIL_TO']: |