Skip to content

Commit 85ac597

Browse files
committed
fixed Package.__str__ method
1 parent 39b1b22 commit 85ac597

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Changelog
55
------------------
66

77
- switched to `python-javabridge`, the new name (fork?) of the `javabridge` library
8+
- `Package.__str__` (`weka.core.packages` module) method now returns a string rather than printing the name/version
89
- ...
910

1011

python/weka/core/packages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def __str__(self):
125125
:return: the name/version
126126
:rtype: str
127127
"""
128-
print(self.name + "/" + self.version)
128+
return self.name + "/" + self.version
129129

130130

131131
class PackageConstraint(JavaObject):

0 commit comments

Comments
 (0)