Commits

Matthew Schinckel  committed 92900da

Resolves #10: Removal of unused code.

  • Participants
  • Parent commits 282d365

Comments (0)

Files changed (1)

File timedelta/forms.py

         super(TimedeltaFormField, self).clean(value)
         if value == '' and not self.required:
             return u''
-        
-        data = defaultdict(float)
         try:
             return parse(value)
         except TypeError:
             raise forms.ValidationError(self.error_messages['invalid'])
-            
-        return datetime.timedelta(**data)
 
 class TimedeltaChoicesField(TimedeltaFormField):
     def __init__(self, *args, **kwargs):