summaryrefslogtreecommitdiffstats
path: root/geo-replication/syncdaemon/syncdutils.py
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2018-10-03 00:45:09 -0400
committerShyamsundar Ranganathan <srangana@redhat.com>2018-10-10 14:09:10 +0000
commit84a3d43079cfe8cf6a374defa86a345124d5901c (patch)
tree1feb533cae4b73ceb595e95e395743c662acfbc8 /geo-replication/syncdaemon/syncdutils.py
parent324384ca48944662fecdffe72faa5d2c5872eb5f (diff)
georep: python2 to python3 compat - syscalls
1. ctypes/syscalls A) arguments is expected to be encoded B) Raw conversion of return value from bytearray into string 2. struct pack/unpack - Raw converstion of string to bytearray 3. basestring -> str Updates: #411 Change-Id: I80f939adcdec0ed0022c87c0b76d057ad5559e5a Signed-off-by: Kotresh HR <khiremat@redhat.com> (cherry picked from commit fb6e8d0d0ca21b16d331fa69da9b9dadf6c5c35d)
Diffstat (limited to 'geo-replication/syncdaemon/syncdutils.py')
-rw-r--r--geo-replication/syncdaemon/syncdutils.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/geo-replication/syncdaemon/syncdutils.py b/geo-replication/syncdaemon/syncdutils.py
index cbb169c6c96..fad1a3e4f76 100644
--- a/geo-replication/syncdaemon/syncdutils.py
+++ b/geo-replication/syncdaemon/syncdutils.py
@@ -1021,15 +1021,3 @@ def get_up_nodes(hosts, port):
up_nodes.append(h)
return up_nodes
-
-
-def pipe():
- # Pipe routine for python2 and python3 compatiability
- try:
- (r, w) = os.pipe()
- os.set_inheritable(r, True)
- os.set_inheritable(w, True)
- except AttributeError:
- (r, w) = os.pipe()
-
- return (r, w)