Skip to content

Commit

Permalink
Make examples AttributeError cases compat. for any Python 3.X
Browse files Browse the repository at this point in the history
  • Loading branch information
sadielbartholomew committed Jan 31, 2024
1 parent fac74a5 commit 92eea6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cfunits/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ class Units:
>>> u.calendar
Traceback (most recent call last):
...
AttributeError: Units has no attribute 'calendar'
AttributeError: Units has no attribute 'calendar'...
>>> v = Units('days since 2000-1-1', 'standard')
>>> v.calendar
'standard'
Expand Down Expand Up @@ -1765,7 +1765,7 @@ def calendar(self):
>>> Units('days since 2001-1-1').calendar
Traceback (most recent call last):
...
AttributeError: Units has no attribute 'calendar'
AttributeError: Units has no attribute 'calendar'...
"""
value = self._calendar
Expand Down

0 comments on commit 92eea6f

Please sign in to comment.