Skip to content

Commit eecdc3c

Browse files
committed
FIX: re-instate verbose alias
1 parent aadd0e0 commit eecdc3c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/matplotlib/__init__.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ def _is_writable_dir(p):
233233
return os.access(p, os.W_OK) and os.path.isdir(p)
234234

235235
_verbose_msg = """\
236+
matplotlib.verbose is deprecated;
236237
Command line argument --verbose-LEVEL is deprecated.
237238
This functionality is now provided by the standard
238239
python logging library. To get more (or less) logging output:
@@ -297,7 +298,6 @@ def _parse_commandline():
297298
_parse_commandline()
298299

299300

300-
@cbook.deprecated("2.2", message=_verbose_msg)
301301
class Verbose(object):
302302
"""
303303
A class to handle reporting. Set the fileo attribute to any file
@@ -320,10 +320,12 @@ class Verbose(object):
320320
if level_str in levels:
321321
_commandLineVerbose = level_str
322322

323+
@cbook.deprecated("2.2", message=_verbose_msg)
323324
def __init__(self):
324325
self.set_level('silent')
325326
self.fileo = sys.stdout
326327

328+
@cbook.deprecated("2.2", message=_verbose_msg)
327329
def set_level(self, level):
328330
'set the verbosity to one of the Verbose.levels strings'
329331

@@ -335,6 +337,7 @@ def set_level(self, level):
335337
else:
336338
self.level = level
337339

340+
@cbook.deprecated("2.2", message=_verbose_msg)
338341
def set_fileo(self, fname):
339342
std = {
340343
'sys.stdout': sys.stdout,
@@ -352,6 +355,7 @@ def set_fileo(self, fname):
352355
else:
353356
self.fileo = fileo
354357

358+
@cbook.deprecated("2.2", message=_verbose_msg)
355359
def report(self, s, level='helpful'):
356360
"""
357361
print message s to self.fileo if self.level>=level. Return
@@ -363,6 +367,7 @@ def report(self, s, level='helpful'):
363367
return True
364368
return False
365369

370+
@cbook.deprecated("2.2", message=_verbose_msg)
366371
def wrap(self, fmt, func, level='helpful', always=True):
367372
"""
368373
return a callable function that wraps func and reports it
@@ -386,6 +391,7 @@ def wrapper(*args, **kwargs):
386391
wrapper.__doc__ = func.__doc__
387392
return wrapper
388393

394+
@cbook.deprecated("2.2", message=_verbose_msg)
389395
def ge(self, level):
390396
'return true if self.level is >= level'
391397
return self.vald[self.level] >= self.vald[level]

0 commit comments

Comments
 (0)