summaryrefslogtreecommitdiff
path: root/python/py3compat.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2019-06-07 11:01:19 +0200
committerNoel Power <npower@samba.org>2019-06-24 17:24:27 +0000
commit3fa00d435045e6faeb92f5379684f118b131c92c (patch)
tree0857fd5576d31c9423629b0e81d821e13e997d7f /python/py3compat.h
parent34f9a089d8d3a8971b2f7ee45f6d8e823a52a193 (diff)
downloadsamba-3fa00d435045e6faeb92f5379684f118b131c92c.tar.gz
py3: Remove PyStr_FromStringAndSize() compatability macro
We no longer need Samba to be py2/py3 compatible so we choose to return to the standard function names. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'python/py3compat.h')
-rw-r--r--python/py3compat.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/python/py3compat.h b/python/py3compat.h
index bb35673c1a1..bac7ae00d16 100644
--- a/python/py3compat.h
+++ b/python/py3compat.h
@@ -54,7 +54,6 @@
/* Strings */
-#define PyStr_FromStringAndSize PyUnicode_FromStringAndSize
#define PyStr_FromFormat PyUnicode_FromFormat
#define PyStr_FromFormatV PyUnicode_FromFormatV
#define PyStr_AsString PyUnicode_AsUTF8