From aa3bfe1ebf070858e3f0dbea5727b1ef1f9616bd Mon Sep 17 00:00:00 2001 From: dol-sen Date: Mon, 25 Apr 2011 00:22:11 -0700 Subject: [PATCH] move unused function to stuff.py --- pym/gentoolkit/revdep_rebuild/rebuild.py | 7 ------- pym/gentoolkit/revdep_rebuild/stuff.py | 10 +++++++++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/pym/gentoolkit/revdep_rebuild/rebuild.py b/pym/gentoolkit/revdep_rebuild/rebuild.py index 6c08f5b..e0ab7d1 100644 --- a/pym/gentoolkit/revdep_rebuild/rebuild.py +++ b/pym/gentoolkit/revdep_rebuild/rebuild.py @@ -71,13 +71,6 @@ def print_usage(): print 'and passed directly to emerge.' -def _match_str_in_list(lst, stri): - for l in lst: - if stri.endswith(l): - return l - return False - - def init_logger(settings): """Creates and iitializes our logger according to the settings""" logger = logging.getLogger() diff --git a/pym/gentoolkit/revdep_rebuild/stuff.py b/pym/gentoolkit/revdep_rebuild/stuff.py index 459301f..7b287b1 100644 --- a/pym/gentoolkit/revdep_rebuild/stuff.py +++ b/pym/gentoolkit/revdep_rebuild/stuff.py @@ -31,7 +31,6 @@ def scan(params, files, max_args): return out - def exithandler(signum, frame): sys.exit(1) @@ -43,5 +42,14 @@ def get_masking_status(ebuild): status = ['unavailable'] return status + +def _match_str_in_list(lst, stri): + for l in lst: + if stri.endswith(l): + return l + return False + + + if __name__ == '__main__': print "There is nothing to run here." -- 2.26.2