[Forensics-changes] [yara] 313/415: Fix incompatibility with Python 2.6
Hilko Bengen
bengen at moszumanska.debian.org
Thu Apr 3 05:43:18 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch debian
in repository yara.
commit 78a42c66cc43dfdeb22efb485e3aae4e5b5da833
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Wed Dec 18 10:26:56 2013 +0100
Fix incompatibility with Python 2.6
---
yara-python/tests.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/yara-python/tests.py b/yara-python/tests.py
index 63ae27e..ef9adf2 100644
--- a/yara-python/tests.py
+++ b/yara-python/tests.py
@@ -222,7 +222,7 @@ class TestYara(unittest.TestCase):
if expected_result == SUCCEED:
self.assertTrue(matches)
_, _, matching_string = matches[0].strings[0]
- if sys.version_info.major >= 3:
+ if sys.version_info[0] >= 3:
self.assertTrue(matching_string == bytes(test[3], 'utf-8'))
else:
self.assertTrue(matching_string == test[3])
--
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