Skip to content

Commit 7528653

Browse files
committed
jvm_version: fix weird docstring line wrapping
1 parent 2a1f905 commit 7528653

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

src/scyjava/_java.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,16 @@ def inner(self):
8080

8181
def jvm_version() -> str:
8282
"""
83-
Gets the version of the JVM as a tuple,
84-
with each dot-separated digit as one element.
85-
Characters in the version string beyond only
86-
numbers and dots are ignored, in line
87-
with the java.version system property.
83+
Gets the version of the JVM as a tuple, with each dot-separated digit
84+
as one element. Characters in the version string beyond only numbers
85+
and dots are ignored, in line with the java.version system property.
8886
8987
Examples:
9088
* OpenJDK 17.0.1 -> [17, 0, 1]
9189
* OpenJDK 11.0.9.1-internal -> [11, 0, 9, 1]
9290
* OpenJDK 1.8.0_312 -> [1, 8, 0]
9391
94-
If the JVM is already started,
95-
this function should return the equivalent of:
92+
If the JVM is already started, this function returns the equivalent of:
9693
jimport('java.lang.System')
9794
.getProperty('java.version')
9895
.split('.')

0 commit comments

Comments
 (0)