Commits

Anonymous committed 0a8c3b9

Remove pypy patch, don't needed anymore. Timestamp format fixed in changeset:1669 and changeset:1670

Comments (0)

Files changed (1)

hachoir-core/compatibility/pypy.patch

-Index: run_testcase.py
-===================================================================
---- run_testcase.py	(révision 916)
-+++ run_testcase.py	(copie de travail)
-@@ -17,7 +17,6 @@
- import stat
- import sys
- from hachoir.i18n import getTerminalCharset
--from urllib2 import Request, urlopen, URLError, HTTPError
- from unit_test.valid_parser import (checkFile, stringMD5, checkFileMD5,
-     checkValue, checkNames, checkDisplay, checkAttr)
-
-@@ -33,7 +32,7 @@
-
- def checkLogoUbuntuMeta(metadata):
-     ok  = checkAttr(metadata, "bits_per_pixel", 8)
--    ok &= checkAttr(metadata, "creation_date", ["2006-05-26 09:41:46"])
-+#    ok &= checkAttr(metadata, "creation_date", ["2006-05-26 09:41:46"])
-     ok &= checkAttr(metadata, "mime_type", "image/png")
-     return ok
-
-@@ -52,7 +51,7 @@
- def checkGzipMeta(metadata):
-     ok  = checkAttr(metadata, "file_size", 99)
-     ok &= checkAttr(metadata, "compr_size", 90)
--    ok &= checkAttr(metadata, "last_modification", ["2006-07-29 14:20:44"])
-+#    ok &= checkAttr(metadata, "last_modification", ["2006-07-29 14:20:44"])
-     ok &= checkAttr(metadata, "compression", "deflate")
-     return ok
-
-@@ -64,7 +63,7 @@
-
- def checkPng331_90_8Meta(metadata):
-     ok  = checkAttr(metadata, "width", 331)
--    ok &= checkAttr(metadata, "creation_date", [u"2006-05-26 09:41:46"])
-+#    ok &= checkAttr(metadata, "creation_date", [u"2006-05-26 09:41:46"])
-     ok &= checkAttr(metadata, "mime_type", "image/png")
-     ok &= checkAttr(metadata, "endian", u"Big endian")
-     return ok
-Index: hachoir/text_handler.py
-===================================================================
---- hachoir/text_handler.py	(révision 918)
-+++ hachoir/text_handler.py	(copie de travail)
-@@ -102,8 +102,7 @@
-     """
-     assert hasattr(field, "value") and hasattr(field, "size")
-     assert field.size == 32
--    timestamp = datetime.datetime.fromtimestamp(field.value)
--    return unicode(timestamp)
-+    return unicode(field.value)
-
- def timestampMac(field):
-     """