from re import sub
from transliterate import translit, exceptions


def make_url(title):
    url = 'default_url'
    try:
        url = sub(r'_| |!|\?|\.|,|\'|\"|;|:', '-', translit(title, reversed=True).lower())
    except exceptions.LanguageDetectionError:
        url = sub(r'_| |!|\?|\.|,|\'|\"|;|:', '-', title.lower())
    return url

d65fa3a18b92d5ec46e94ad2e4489d97fe111b39
<mask token>

<mask token>


def make_url(title):
    url = 'default_url'
    try:
        url = sub('_| |!|\\?|\\.|,|\\\'|\\"|;|:', '-', translit(title,
            reversed=True).lower())
    except exceptions.LanguageDetectionError:
        url = sub('_| |!|\\?|\\.|,|\\\'|\\"|;|:', '-', title.lower())
    return url

from re import sub
from transliterate import translit, exceptions


def make_url(title):
    url = 'default_url'
    try:
        url = sub('_| |!|\\?|\\.|,|\\\'|\\"|;|:', '-', translit(title,
            reversed=True).lower())
    except exceptions.LanguageDetectionError:
        url = sub('_| |!|\\?|\\.|,|\\\'|\\"|;|:', '-', title.lower())
    return url

from re import sub
from transliterate import translit, exceptions


def make_url(title):
    url = 'default_url'
    try:
        url = sub(r'_| |!|\?|\.|,|\'|\"|;|:', '-', translit(title, reversed=True).lower())
    except exceptions.LanguageDetectionError:
        url = sub(r'_| |!|\?|\.|,|\'|\"|;|:', '-', title.lower())
    return url
