Commits

Matthew Schinckel committed aa22fc9

If we are passed in a date or datetime object, don't die in a fire.

  • Participants
  • Parent commits 6723357
  • Tags 0.1.6

Comments (0)

Files changed (1)

File iso8601/parser.py

     
     """
     
+    if isinstance(data, (datetime.datetime, datetime.date)):
+        return data
+    
     if 'T' not in data:
         data = data.replace(' ', 'T')