1
0
mirror of https://github.com/django/django.git synced 2025-10-31 01:25:32 +00:00

Fixed #20841 -- Added messages to NotImplementedErrors

Thanks joseph at vertstudios.com for the suggestion.
This commit is contained in:
Gregor MacGregor
2013-09-06 13:24:52 -05:00
committed by Tim Graham
parent d59f1993f1
commit b2b763448f
26 changed files with 96 additions and 95 deletions

View File

@@ -99,7 +99,7 @@ class Origin(object):
self.name = name
def reload(self):
raise NotImplementedError
raise NotImplementedError('subclasses of Origin must provide a reload() method')
def __str__(self):
return self.name
@@ -385,7 +385,7 @@ class TokenParser(object):
"""
Overload this method to do the actual parsing and return the result.
"""
raise NotImplementedError()
raise NotImplementedError('subclasses of Tokenparser must provide a top() method')
def more(self):
"""

View File

@@ -61,7 +61,7 @@ class BaseLoader(object):
name.
"""
raise NotImplementedError
raise NotImplementedError('subclasses of BaseLoader must provide a load_template_source() method')
def reset(self):
"""