Skip to content

Commit dd227ca

Browse files
committed
Rename gv to global_variable
1 parent 59fa442 commit dd227ca

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

zstash/globus.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def file_exists(name: str) -> bool:
159159

160160

161161
# TODO: What does gv stand for? Globus something? Global variable?
162-
gv_tarfiles_pushed = 0
162+
global_variable_tarfiles_pushed = 0
163163

164164

165165
# C901 'globus_transfer' is too complex (20)
@@ -172,7 +172,7 @@ def globus_transfer( # noqa: C901
172172
global transfer_data
173173
global task_id
174174
global archive_directory_listing
175-
global gv_tarfiles_pushed
175+
global global_variable_tarfiles_pushed
176176

177177
logger.info(f"{ts_utc()}: Entered globus_transfer() for name = {name}")
178178
logger.debug(f"{ts_utc()}: non_blocking = {non_blocking}")
@@ -257,9 +257,9 @@ def globus_transfer( # noqa: C901
257257
attribs = transfer_data.__dict__
258258
for item in attribs["data"]["DATA"]:
259259
if item["DATA_TYPE"] == "transfer_item":
260-
gv_tarfiles_pushed += 1
260+
global_variable_tarfiles_pushed += 1
261261
print(
262-
f" (routine) PUSHING (#{gv_tarfiles_pushed}) STORED source item: {item['source_path']}",
262+
f" (routine) PUSHING (#{global_variable_tarfiles_pushed}) STORED source item: {item['source_path']}",
263263
flush=True,
264264
)
265265

@@ -402,7 +402,7 @@ def globus_finalize(non_blocking: bool = False):
402402
global transfer_client
403403
global transfer_data
404404
global task_id
405-
global gv_tarfiles_pushed
405+
global global_variable_tarfiles_pushed
406406

407407
last_task_id = None
408408

@@ -412,9 +412,9 @@ def globus_finalize(non_blocking: bool = False):
412412
attribs = transfer_data.__dict__
413413
for item in attribs["data"]["DATA"]:
414414
if item["DATA_TYPE"] == "transfer_item":
415-
gv_tarfiles_pushed += 1
415+
global_variable_tarfiles_pushed += 1
416416
print(
417-
f" (finalize) PUSHING ({gv_tarfiles_pushed}) source item: {item['source_path']}",
417+
f" (finalize) PUSHING ({global_variable_tarfiles_pushed}) source item: {item['source_path']}",
418418
flush=True,
419419
)
420420

0 commit comments

Comments
 (0)