Ticket #20422: django-makemessages-ignore-patterns-1.5.patch

File django-makemessages-ignore-patterns-1.5.patch, 488 bytes (added by Vsevolod Novikov, 12 years ago)

patch for django-1.5.1-final

  • django/core/management/commands/makemessages.py

    old new  
    7474    Helper function to check if the given path should be ignored or not.
    7575    """
    7676    for pattern in ignore_patterns:
    77         if fnmatch.fnmatchcase(path, pattern):
     77        if fnmatch.fnmatchcase(os.path.split(path)[-1], pattern):
    7878            return True
    7979    return False
Back to Top