Commit f25678c Begin the deprecation procedure for ‘runner’ module.

2 files Merged and Committed by bignose 11 months ago
Begin the deprecation procedure for ‘runner’ module.

* wip/feature/deprecate-runner:
  : Deprecate the ‘runner’ module to an example only.
  Raise a warning that the ‘runner’ module is pending deprecation.

    
 1 @@ -22,6 +22,9 @@
 2   
 3   * Migrate code project hosting to Pagure.
 4     Record the change of homepage URL in PyPI metadata.
 5 + * Raise a warning that the ‘runner’ module is pending deprecation.
 6 +   This has been an unofficial example module from the beginning, and
 7 +   it will be removed in a future version.
 8   
 9   Bug Fixes:
10   
 1 @@ -19,10 +19,11 @@
 2   
 3   from __future__ import (absolute_import, unicode_literals)
 4   
 5 - import sys
 6 + import errno
 7   import os
 8   import signal
 9 - import errno
10 + import sys
11 + import warnings
12   
13   import lockfile
14   
15 @@ -40,6 +41,11 @@
16   
17   __metaclass__ = type
18   
19 + 
20 + warnings.warn(
21 +         "The ‘runner’ module is not a supported API for this library.",
22 +         PendingDeprecationWarning)
23 + 
24   
25   class DaemonRunnerError(Exception):
26       """ Abstract base class for errors from DaemonRunner. """