Skip to content

Commit

Permalink
Updated classic.rst and services.rst print syntax to python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
comrumino committed Jan 6, 2024
1 parent 3ba1c20 commit 3f82027
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/docs/classic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ to it like so ::

remote_list = conn.builtin.range(7)

conn.execute("print 'foo'")
conn.execute("print('foo')")


2 changes: 1 addition & 1 deletion docs/docs/services.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ decorator. Let's revisit the calculator service, but this time we'll use decorat
def div(self, a, b):
return a / b
def foo(self):
print "foo"
print("foo")

When implementing services, ``@rpyc.service`` and ``@rpyc.exposed`` can replace the ``exposed_`` naming
convention.
Expand Down

0 comments on commit 3f82027

Please sign in to comment.