File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,9 @@ def install_pth(self) -> bool:
235
235
with open (pth_file , "w" , encoding = "utf-8" ) as f :
236
236
f .write ("import jvm\n " )
237
237
logger .info ("✓ jvm.pth file installed successfully!" )
238
- logger .info ("Now you can use 'from java.lang import System' directly in any Python script" )
238
+ logger .info (
239
+ "Now you can use 'from java.lang import System' directly in any Python script"
240
+ )
239
241
return True
240
242
except Exception as e :
241
243
logger .error (f"Failed to create jvm.pth file: { e } " )
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ def to_python(jvm: JVM, jobject: Any) -> object:
41
41
# create an ObjectProxy anyway
42
42
if isinstance (jobject , (int , ctypes .c_void_p )) and jobject != 0 :
43
43
from .proxy import ObjectProxy
44
+
44
45
return ObjectProxy (jvm , jobject )
45
46
return jobject
46
47
@@ -68,4 +69,5 @@ def to_python(jvm: JVM, jobject: Any) -> object:
68
69
69
70
# For any other Java object, create an ObjectProxy
70
71
from .proxy import ObjectProxy
72
+
71
73
return ObjectProxy (jvm , jobject )
You can’t perform that action at this time.
0 commit comments