Skip to content

Commit

Permalink
Removed addition to API.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thrameos committed Jul 31, 2020
1 parent 470e6bb commit a95daf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions doc/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ This changelog *only* contains changes from the *first* pypi release (0.5.4.3) o
Latest Changes:
- **1.0.2 - 2020-07-27**

- java.util.Iterable will take a Python sequence as an implicit conversion.

- The wrapper for Throwable was getting the wrapper for Object rather than
the expected wrapper resulting in odd conversions from Python classes.

Expand Down
4 changes: 2 additions & 2 deletions jpype/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def _JPathConvert(jcls, obj):
def _JFileConvert(jcls, obj):
return jcls(obj.__fspath__())


@_jcustomizer.JConversion("java.util.Iterable", instanceof=Sequence, excludes=str)
# To be added in 1.1.x
#@_jcustomizer.JConversion("java.util.Iterable", instanceof=Sequence, excludes=str)
@_jcustomizer.JConversion("java.util.Collection", instanceof=Sequence, excludes=str)
def _JSequenceConvert(jcls, obj):
return _jclass.JClass('java.util.Arrays').asList(obj)
Expand Down

0 comments on commit a95daf8

Please sign in to comment.