From 6cbcfb64a22e92f467ff09082a955f866cf68ea9 Mon Sep 17 00:00:00 2001 From: jevans Date: Sat, 25 Jan 2014 16:04:57 -0500 Subject: [PATCH] Removed restriction on only writing XMP UUIDs. #104 --- glymur/jp2box.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/glymur/jp2box.py b/glymur/jp2box.py index b3fcf89..6dbec1d 100644 --- a/glymur/jp2box.py +++ b/glymur/jp2box.py @@ -2249,9 +2249,6 @@ class UUIDBox(Jp2kBox): def write(self, fptr): """Write a UUID box to file. """ - if self.uuid != uuid.UUID('be7acfcb-97a9-42e8-9c71-999491e3afac'): - msg = "Only XMP UUID boxes can currently be written." - raise NotImplementedError(msg) write_buffer = struct.pack('>I4s', self.length, b'uuid') fptr.write(write_buffer) fptr.write(self.uuid.bytes)