Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
#################
# Configuration #
#################
# TODO: à migrer dans un fichier de config ?
# Clé privée principale, utilisée pour générer la CSR
private_master_key="/etc/ssl/private/slaanesh.org.key"
#Theoretical exercises in patterns to make API changes smoother
from functools import wraps
def deprecated_in_favor_of(new_name):
def wrap(f):
@wraps(f)
def wrapped_f(*args, **kwargs):
if not wrapped_f._called:
print(f.__name__ + ' deprecated in favor of ' + new_name)