From 92eea6f5f3dca7a4471a0dc46a73cbd4d91d0c6f Mon Sep 17 00:00:00 2001 From: "Sadie L. Bartholomew" Date: Wed, 31 Jan 2024 17:59:37 +0000 Subject: [PATCH] Make examples AttributeError cases compat. for any Python 3.X --- cfunits/units.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cfunits/units.py b/cfunits/units.py index 282e06a..1776c2d 100644 --- a/cfunits/units.py +++ b/cfunits/units.py @@ -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' @@ -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