mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
remove util.getargspec
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import importlib
|
||||
import logging
|
||||
from inspect import getfullargspec
|
||||
from types import ModuleType
|
||||
|
||||
import galaxy.jobs.rules
|
||||
from galaxy.jobs import stock_rules
|
||||
from galaxy.jobs.dynamic_tool_destination import map_tool_to_destination
|
||||
from galaxy.util.getargspec import getfullargspec
|
||||
from galaxy.util.submodules import import_submodules
|
||||
from .rule_helper import RuleHelper
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import logging
|
||||
import os
|
||||
import shutil
|
||||
from inspect import getfullargspec
|
||||
|
||||
from galaxy import model, util
|
||||
from galaxy.util.getargspec import getfullargspec
|
||||
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
@@ -4,7 +4,6 @@ import inspect
|
||||
|
||||
from galaxy.tool_util.parser import get_tool_source
|
||||
from galaxy.util import submodules
|
||||
from galaxy.util.getargspec import getfullargspec
|
||||
|
||||
|
||||
LEVEL_ALL = "all"
|
||||
@@ -47,7 +46,7 @@ def lint_tool_source_with(lint_context, tool_source, extra_modules=None):
|
||||
# Look at the first argument to the linter to decide
|
||||
# if we should lint the XML description or the abstract
|
||||
# tool parser object.
|
||||
first_arg = getfullargspec(value).args[0]
|
||||
first_arg = inspect.getfullargspec(value).args[0]
|
||||
if first_arg == "tool_xml":
|
||||
if tool_xml is None:
|
||||
# XML linter and non-XML tool, skip for now
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import logging
|
||||
import sys
|
||||
from inspect import getfullargspec
|
||||
|
||||
from galaxy.util import unicodify
|
||||
from galaxy.util.getargspec import getfullargspec
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
import inspect
|
||||
|
||||
|
||||
def getfullargspec(func):
|
||||
try:
|
||||
return inspect.getfullargspec(func)
|
||||
except AttributeError:
|
||||
# on python 2
|
||||
return inspect.getargspec(func)
|
||||
@@ -7,12 +7,12 @@ import inspect
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
from inspect import getfullargspec
|
||||
from typing import Callable, Dict, List, Optional, Union
|
||||
from urllib.parse import unquote
|
||||
|
||||
import pkg_resources
|
||||
|
||||
from galaxy.util.getargspec import getfullargspec
|
||||
from galaxy.util.properties import NicerConfigParser
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import logging
|
||||
from functools import wraps
|
||||
from inspect import getfullargspec
|
||||
from json import loads
|
||||
from traceback import format_exc
|
||||
|
||||
@@ -17,7 +18,6 @@ from galaxy.util import (
|
||||
parse_non_hex_float,
|
||||
unicodify
|
||||
)
|
||||
from galaxy.util.getargspec import getfullargspec
|
||||
from galaxy.util.json import safe_dumps
|
||||
from galaxy.web.framework import url_for
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
from inspect import getfullargspec
|
||||
|
||||
import pytest
|
||||
|
||||
from galaxy.tool_util.lint import LintContext
|
||||
@@ -8,7 +10,6 @@ from galaxy.tool_util.linters import (
|
||||
)
|
||||
from galaxy.tool_util.parser.xml import XmlToolSource
|
||||
from galaxy.util import etree
|
||||
from galaxy.util.getargspec import getfullargspec
|
||||
|
||||
WHITESPACE_IN_VERSIONS_AND_NAMES = """
|
||||
<tool name=" BWA Mapper " id="bwa tool" version=" 1.0.1 " is_multi_byte="true" display_interface="true" require_login="true" hidden="true">
|
||||
|
||||
Reference in New Issue
Block a user