summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-10-23 21:45:08 +0200
committeremkael <emkael@tlen.pl>2016-10-23 21:45:08 +0200
commit5e56a670ac7f7498c079d4e28dd6643b929f92f3 (patch)
tree2a2da295a1239cd11f342e09cd8466dc642f55dc
parent50673be76532ea07a32b479eb2e1ea8a22326a3e (diff)
* proper socket content encoding
-rw-r--r--src/bidding_data.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bidding_data.py b/src/bidding_data.py
index 421be95..3b277bb 100644
--- a/src/bidding_data.py
+++ b/src/bidding_data.py
@@ -517,8 +517,10 @@ class JFRBidding(object):
log.getLogger('goniec').info(
'connected to Goniec at %s:%d' \
% (self.__goniec_host, self.__goniec_port))
+ content_lines = [working_directory] + files_to_send + ['bye', '']
goniec_socket.sendall('\n'.join(
- [working_directory] + files_to_send + ['bye', '']))
+ [line.encode(sys.getfilesystemencoding())
+ for line in content_lines]))
log.getLogger('goniec').info(
'working directory is: %s' % working_directory)
goniec_socket.close()