[Forensics-changes] [yara] 358/407: Revert wrong attempt to fix issue #240
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:28:45 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.3.0
in repository yara.
commit 61be5ca44eb02fb90a23e389e9de5bc82e2030f9
Author: Victor Manuel Alvarez <vmalvarez at virustotal.com>
Date: Thu Jan 29 21:55:09 2015 +0100
Revert wrong attempt to fix issue #240
---
yara-python/yara-python.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/yara-python/yara-python.c b/yara-python/yara-python.c
index 4a67b0b..007f3f0 100644
--- a/yara-python/yara-python.c
+++ b/yara-python/yara-python.c
@@ -40,7 +40,7 @@ typedef int Py_ssize_t;
#endif
#if PY_MAJOR_VERSION >= 3
-#define PY_STRING(x) (PyUnicode_FromString(x) || PyBytes_FromString(x))
+#define PY_STRING(x) PyUnicode_FromString(x)
#define PY_STRING_TO_C(x) PyBytes_AsString(\
PyUnicode_AsEncodedString(x, "utf-8", "strict"))
#define PY_STRING_CHECK(x) PyUnicode_Check(x)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git
More information about the forensics-changes
mailing list