• Jérome Perrin's avatar
    DateTimePatch: keep exceptions as class attributes · ba286114
    Jérome Perrin authored
    We have code depending on these attributes, they were used in pattern
    like this:
    
    ```py
    try:
      DateTime(user_input)
    except DateTime.DateError:
      error("invalid date")
    ```
    
    so it's safer to keep the attributes for now, since we are already
    patching a lot
    ba286114
DateTimePatch.py 8.63 KB