Skip to content

Commit 6e4866c

Browse files
committed
rename version variables
1 parent 77db4c1 commit 6e4866c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pygmt/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ def _get_ghostscript_version():
134134

135135
for gs_cmd in cmds:
136136
try:
137-
version = subprocess.check_output(
137+
gs_version = subprocess.check_output(
138138
[gs_cmd, "--version"], universal_newlines=True
139139
).strip()
140-
return version
140+
return gs_version
141141
except FileNotFoundError:
142142
continue
143143
return None
@@ -147,10 +147,10 @@ def _get_gmt_version():
147147
Get GMT version.
148148
"""
149149
try:
150-
version = subprocess.check_output(
150+
gmt_version = subprocess.check_output(
151151
["gmt", "--version"], universal_newlines=True
152152
).strip()
153-
return version
153+
return gmt_version
154154
except FileNotFoundError:
155155
return None
156156

0 commit comments

Comments
 (0)