Skip to content

Commit

Permalink
Release 0.2.8, fix Python 3.7- issue
Browse files Browse the repository at this point in the history
* Use * instead of /
  • Loading branch information
extremeheat committed Jul 21, 2021
1 parent 3b25dde commit 39d409f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pythonia",
"author": "extremeheat",
"description": "Bridge to call and interop Python APIs from Node.js",
"version": "0.2.7",
"version": "0.2.8",
"main": "./src/pythonia/index.js",
"types": "./src/pythonia/index.d.ts",
"repository": "https://github.com/extremeheat/JSPyBridge",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# For a discussion on single-sourcing the version across setup.py and the
# project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='1!0.2.7', # Required
version='1!0.2.8', # Required

# This is a one-line description or tagline of what your project does. This
# corresponds to the "Summary" metadata field:
Expand Down
4 changes: 2 additions & 2 deletions src/javascript/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def ipc(self, action, ffid, attr, args=None):

# forceRefs=True means that the non-primitives in the second parameter will not be recursively
# parsed for references. It's specifcally for eval_js.
def pcall(self, ffid, action, attr, args, /, timeout=1000, forceRefs=False):
def pcall(self, ffid, action, attr, args, *, timeout=1000, forceRefs=False):
"""
This function does a two-part call to JavaScript. First, a preliminary request is made to JS
with the function ID, attribute and arguments that Python would like to call. For each of the
Expand Down Expand Up @@ -140,7 +140,7 @@ def setProp(self, ffid, method, val):
self.pcall(ffid, "set", method, [val])
return True

def callProp(self, ffid, method, args, /, timeout=None, forceRefs=False):
def callProp(self, ffid, method, args, *, timeout=None, forceRefs=False):
resp = self.pcall(ffid, "call", method, args, timeout, forceRefs=forceRefs)
return resp

Expand Down

0 comments on commit 39d409f

Please sign in to comment.