Skip to content

Commit

Permalink
pep8 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Acribbs committed Apr 4, 2024
1 parent 77ab03c commit 15d0442
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cgat/Blat.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@

def deprecated_class(cls):
orig_init = cls.__init__

@functools.wraps(orig_init)
def new_init(self, *args, **kwargs):
warnings.warn(f"{cls.__name__} is deprecated and will be removed in May 2024.", DeprecationWarning)
orig_init(self, *args, **kwargs)

cls.__init__ = new_init
return cls

Expand Down
4 changes: 3 additions & 1 deletion cgat/tools/gff2psl.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:Tags: Genomics Intervals GFF PSL Conversion
Note: This script is scheduled for deprecation in May 2024.
Note: This script is scheduled for deprecation in May 2024.
Purpose
-------
Expand Down Expand Up @@ -48,6 +48,7 @@
import alignlib_lite
import cgat.Intervals as Intervals


def print_deprecation_warning():
warning_message = ("""WARNING: 'gff2psl.py' is deprecated and will be removed in May 2024.""")
print(warning_message, file=sys.stderr)
Expand All @@ -58,6 +59,7 @@ def main(argv=None):
parses command line options in sys.argv, unless *argv* is given.
"""

print_deprecation_warning()

if argv is None:
Expand Down

0 comments on commit 15d0442

Please sign in to comment.