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
from django.contrib.auth.hashers import BasePasswordHasher | |
class NotHashingHasher(BasePasswordHasher): | |
""" | |
A hasher that does not hash. | |
""" | |
algorithm = 'plain' | |
def encode(self, password, salt): |
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
import os | |
import re | |
import feedgenerator | |
from github2.client import Github | |
REPO = 'django/django' | |
BRANCH = 'master' | |
HERE = os.path.abspath(os.path.dirname(__file__)) | |
TICKET_RE = re.compile(r'#(?P<id>\d+)') |
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
# Font colors # | |
BLACK = '\x1b[30m' | |
RED = '\x1b[31m' | |
GREEN = '\x1b[32m' | |
YELLOW = '\x1b[33m' | |
BLUE = '\x1b[34m' | |
PURPLE = '\x1b[35m' | |
PALE_BLUE = '\x1b[36m' | |
WHITE = '\x1b[37m' |
NewerOlder