Skip to content

Commit 33e0ded

Browse files
committed
rename decorator for obtain_file to update progress bar on return
1 parent d7cc593 commit 33e0ded

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

easybuild/framework/easyblock.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
_log = fancylogger.getLogger('easyblock')
134134

135135

136-
def update_progress_bar_on_return(func):
136+
def _obtain_file_update_progress_bar_on_return(func):
137137
"""Decorator for obtain_file() to update the progress bar upon return"""
138138
@functools.wraps(func)
139139
def wrapper(*args, **kwargs):
@@ -806,7 +806,7 @@ def collect_exts_file_info(self, fetch_files=True, verify_checksums=True):
806806

807807
return exts_sources
808808

809-
@update_progress_bar_on_return
809+
@_obtain_file_update_progress_bar_on_return
810810
def obtain_file(self, filename, extension=False, urls=None, download_filename=None, force_download=False,
811811
git_config=None, no_download=False, download_instructions=None, alt_location=None,
812812
warning_only=False):

0 commit comments

Comments
 (0)