From cb52a4a51255baf3b90ae313baf999676b5cfea4 Mon Sep 17 00:00:00 2001 From: mgrover1 Date: Fri, 24 Mar 2023 08:10:09 -0500 Subject: [PATCH] FIX: Fix new linting issues --- pyart/core/radar.py | 2 +- pyart/io/cfradial.py | 2 +- pyart/lazydict.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyart/core/radar.py b/pyart/core/radar.py index f38ffae6a5..f34bc66c75 100644 --- a/pyart/core/radar.py +++ b/pyart/core/radar.py @@ -748,7 +748,7 @@ def _dic_info(self, attr, level, out, dic=None, ident_level=0): else: data = dic["data"] t = (data.dtype, data.shape) - d_str = "" % t + d_str = "".format(*t) # compact, only data summary if level == "compact": diff --git a/pyart/io/cfradial.py b/pyart/io/cfradial.py index 889f474a2e..f9124a5f68 100644 --- a/pyart/io/cfradial.py +++ b/pyart/io/cfradial.py @@ -529,7 +529,7 @@ def write_cfradial( node = platform.node() time_str = datetime.datetime.now().isoformat() t = (user, node, time_str) - history = "created by %s on %s at %s using Py-ART" % (t) + history = "created by {} on {} at {} using Py-ART".format(*t) dataset.setncatts(metadata_copy) diff --git a/pyart/lazydict.py b/pyart/lazydict.py index b0e5b4a550..515586f375 100644 --- a/pyart/lazydict.py +++ b/pyart/lazydict.py @@ -92,7 +92,7 @@ def __str__(self): else: seperator = ", " lazy_reprs = [(repr(k), repr(v)) for k, v in self._lazyload.items()] - lazy_strs = ["%s: LazyLoad(%s)" % r for r in lazy_reprs] + lazy_strs = ["{}: LazyLoad({})".format(*r) for r in lazy_reprs] lazy_str = ", ".join(lazy_strs) + "}" return str(self._dic)[:-1] + seperator + lazy_str