Skip to content
Snippets Groups Projects
Commit aea80821 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

MAINT: make depr warnings more specific

parent d31e92ba
No related branches found
No related tags found
2 merge requests!107ENH: add entity getters and cached functions,!104Cleanup apiutils module a bit and move git related functions to another module
Pipeline #36601 passed with warnings
...@@ -149,32 +149,32 @@ def retrieve_entities_with_ids(entities): ...@@ -149,32 +149,32 @@ def retrieve_entities_with_ids(entities):
def getOriginUrlIn(folder): def getOriginUrlIn(folder):
warnings.warn(""" warnings.warn("""
This function is deprecated and will be removed with the next release. This function is deprecated and will be removed with the next release.
Please use the module caosdb.utils.git_utils for a Please use the caosdb.utils.git_utils.get_origin_url_in instead.""",
similar functionality.""", DeprecationWarning) DeprecationWarning)
return get_origin_url_in(folder) return get_origin_url_in(folder)
def getDiffIn(folder, save_dir=None): def getDiffIn(folder, save_dir=None):
warnings.warn(""" warnings.warn("""
This function is deprecated and will be removed with the next release. This function is deprecated and will be removed with the next release.
Please use the module caosdb.utils.git_utils for a Please use the caosdb.utils.git_utils.get_diff_in instead.""",
similar functionality.""", DeprecationWarning) DeprecationWarning)
return get_diff_in(folder, save_dir) return get_diff_in(folder, save_dir)
def getBranchIn(folder): def getBranchIn(folder):
warnings.warn(""" warnings.warn("""
This function is deprecated and will be removed with the next release. This function is deprecated and will be removed with the next release.
Please use the module caosdb.utils.git_utils for a Please use the caosdb.utils.git_utils.get_branch_in instead.""",
similar functionality.""", DeprecationWarning) DeprecationWarning)
return get_branch_in(folder) return get_branch_in(folder)
def getCommitIn(folder): def getCommitIn(folder):
warnings.warn(""" warnings.warn("""
This function is deprecated and will be removed with the next release. This function is deprecated and will be removed with the next release.
Please use the module caosdb.utils.git_utils for a Please use the caosdb.utils.git_utils.get_commit_in instead.""",
similar functionality.""", DeprecationWarning) DeprecationWarning)
return get_commit_in(folder) return get_commit_in(folder)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment