summaryrefslogtreecommitdiff
path: root/django/core/validators.py
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-05-10 12:40:54 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-05-10 12:40:54 +0000
commitdf1cc366e4fe28c57086952f0677c8a224bc23d4 (patch)
treeef9382bc735cce6d674eab5c57a36f1f0452e3cf /django/core/validators.py
parent861baecd844bf0b1c153be18639bb285e75ec1d7 (diff)
Removed some debug accidentally committed in r13201.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13205 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/core/validators.py')
-rw-r--r--django/core/validators.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/django/core/validators.py b/django/core/validators.py
index bcf7789c25..b1b82dbf0d 100644
--- a/django/core/validators.py
+++ b/django/core/validators.py
@@ -21,22 +21,16 @@ class RegexValidator(object):
code = 'invalid'
def __init__(self, regex=None, message=None, code=None):
- print 'test'
if regex is not None:
- print 1
self.regex = regex
if message is not None:
- print 2
self.message = message
if code is not None:
- print 3
self.code = code
- print 4
if isinstance(self.regex, basestring):
- print 5
self.regex = re.compile(regex)
- print 'REGEX', type(self.regex), self.regex
+
def __call__(self, value):
"""
Validates that the input matches the regular expression.