Skip to content

Commit

Permalink
Merge branch 'master' into py12
Browse files Browse the repository at this point in the history
  • Loading branch information
Thrameos committed Dec 5, 2023
2 parents 5343c95 + 556f632 commit 3e5017a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ sphinx:

# Optionally set the version of Python and requirements required to build your docs
python:
version: "3.8"
install:
- method: pip
path: .
extra_requirements:
- docs

build:
image: latest
tools:
python: "3.8"
os: ubuntu-22.04
apt_packages:
- openjdk-8-jdk

Expand Down
2 changes: 1 addition & 1 deletion examples/jms/testJpypePublisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def pyPublisher(javaNamingFactory="weblogic.jndi.WLInitialContextFactory",
t0 = time.time()
for i in range(NUMMSGS):
publisher.publish("Hello World! %s" % i)
print "MessageRate =", float(NUMMSGS) / (time.time() - t0)
print("MessageRate =", float(NUMMSGS) / (time.time() - t0))

# The "Stop" message signals the subscriber to stop timing message receipts
publisher.publish("Stop")
Expand Down
6 changes: 3 additions & 3 deletions examples/jms/testJpypeSubscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ class pyCallback:
count = 0

def onMessage(self, text):
print text
print(text)
if text == 'Start':
pyCallback.startTime = time.time()
pyCallback.count = 0
elif text == 'Stop':
print "Message Rate =", float(pyCallback.count) / (time.time() - pyCallback.startTime)
print("Message Rate =", float(pyCallback.count) / (time.time() - pyCallback.startTime))
else:
pyCallback.count += 1

Expand All @@ -39,7 +39,7 @@ def onMessage(self, text):

# Get a subscriber
sub = pySubscriber(proxy)
print "Listening..."
print("Listening...")

# Prevent this thread from exiting
time.sleep(1000)
Expand Down
2 changes: 1 addition & 1 deletion examples/linux/findjvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
import os.path

jvmlib = jpype.getDefaultJVMPath()
print os.path.dirname(os.path.dirname(jvmlib))
print(os.path.dirname(os.path.dirname(jvmlib)))
2 changes: 1 addition & 1 deletion examples/rmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

p = java.rmi.Naming.lookup("rmi://localhost:2004/server")

print p, p.__class__
print(p, p.__class__)

p.callRemote()

Expand Down

0 comments on commit 3e5017a

Please sign in to comment.