summaryrefslogtreecommitdiffstats
path: root/geo-replication/src
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2018-09-28 06:11:52 -0400
committerShyamsundar Ranganathan <srangana@redhat.com>2018-10-05 14:20:40 +0000
commit78abb99e6aa9e7abbb364dabfd38c6df2fdd5b88 (patch)
tree0286cfcc5a5d06082cac8591fb103454d7d95c3e /geo-replication/src
parent9eeca96885560ee555826ca0eb4294d226928728 (diff)
georep: python2 to python3 compat - pickle
Handle py2 and py3 compatibility for pickling and unpickling. Geo-rep pickles and unpickles reading sys.stdin and sys.stdout streams. py2 and py3 compatibility expects the streams to be opened in binary mode but the sys.stdout objects are different in python2 and python3 python2: >>> type(sys.stdout) <type 'file'> python3: >>> type(sys.stdout) <class '_io.TextIOWrapper'> So in order to access binary stream, using sys.stdin.buffer in python3 Updates: #411 Change-Id: I1a633ccdddff5baf0cf05a8b493add39ddf75bd7 Signed-off-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'geo-replication/src')
0 files changed, 0 insertions, 0 deletions