From 97436f1356b0f714fbbf876c1c2ed6add1bd437c Mon Sep 17 00:00:00 2001 From: "D. MacCarthy" Date: Sat, 1 Apr 2023 07:21:44 -0600 Subject: [PATCH] Release 3.0.1 --- sc8pr/__init__.py | 6 ++++-- sc8pr/misc/typeset.py | 2 +- setup.cfg | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sc8pr/__init__.py b/sc8pr/__init__.py index caeec5b..e727ff0 100644 --- a/sc8pr/__init__.py +++ b/sc8pr/__init__.py @@ -16,7 +16,7 @@ # along with "sc8pr". If not, see . -version = 3, 0, "dev1" +version = 3, 0, 1 print("sc8pr {}.{}.{}: https://dmaccarthy.github.io/sc8pr".format(*version)) import sys, struct @@ -1145,7 +1145,9 @@ def save(self, fn=None): # Resizing methods @property - def size(self): return self.image.get_size() + def size(self): + try: return self.image.get_size() + except: return self._size @size.setter def size(self, size): diff --git a/sc8pr/misc/typeset.py b/sc8pr/misc/typeset.py index 6807a6b..0b11e1a 100644 --- a/sc8pr/misc/typeset.py +++ b/sc8pr/misc/typeset.py @@ -1,4 +1,4 @@ -# Copyright 2015-2021 D.G. MacCarthy +# Copyright 2015-2023 D.G. MacCarthy # # This file is part of "sc8pr". # diff --git a/setup.cfg b/setup.cfg index be9e207..a108bea 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = sc8pr -version = 3.0.dev1 +version = 3.0.1 author = D.G. MacCarthy author_email = sc8pr.py@gmail.com url = https://dmaccarthy.github.io/sc8pr