Skip to content

Commit 7800586

Browse files
committed
Avoid variable name shadowing
1 parent 64ee823 commit 7800586

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/scyjava/_jvm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ def jvm_version() -> tuple[int, ...]:
5555

5656
assert mode == Mode.JPYPE
5757

58-
jvm_version = jpype.getJVMVersion()
59-
if jvm_version and jvm_version[0]:
58+
jvm_ver = jpype.getJVMVersion()
59+
if jvm_ver and jvm_ver[0]:
6060
# JPype already knew the version.
6161
# JVM is probably already started.
6262
# Or JPype got smarter since 1.3.0.
63-
return jvm_version
63+
return jvm_ver
6464

6565
# JPype was clueless, which means the JVM has probably not started yet.
6666
# Let's look for a java executable, and ask via 'java -version'.

0 commit comments

Comments
 (0)