Skip to content

Commit

Permalink
Merge branch 'release/1.8.1'
Browse files Browse the repository at this point in the history
* release/1.8.1:
  Fix v1.8.1
  [ant-gitflow] updated pom.xml for next development
  Fix version 1.8.1
  [ant-gitflow] updated pom.xml to avoid conflict merging with develop
  [ant-gitflow] updated pom.xml for next development
  • Loading branch information
Sylvain Marty committed Oct 31, 2018
2 parents 32c3b4e + e50daa1 commit b23bb91
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,15 @@ socket_timeout=
Starts the motu python client.

## <a name="UsagePIP">Usage from PIP installation</a>
Since version 1.8.0:
```
python -m motuclient -h
python -m motuclient [options]
motuclient -h
motuclient [options]
```
Before version 1.8.0:
```
python -m motu-client -h
python -m motu-client [options]
```

[Options](#UsageOptions) are listed below.
Expand Down
7 changes: 5 additions & 2 deletions src/python/motu_utils/utils_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this library; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
import io
import io, sys

def copy(sourceHandler, destHandler, callback = None, blockSize = 65535 ):
"""Copy the available content through the given handler to another one. Process
Expand All @@ -50,7 +50,10 @@ def copy(sourceHandler, destHandler, callback = None, blockSize = 65535 ):
try:
if type(destHandler) == io.StringIO:
strBlock=str(block)
destHandler.write( unicode(block, 'utf-8') )
if sys.version_info > (3, 0):
destHandler.write( str(block, 'utf-8') )
else:
destHandler.write( unicode(block, 'utf-8') )
else:
destHandler.write(block)
except Exception as inst:
Expand Down

0 comments on commit b23bb91

Please sign in to comment.