Package: pydicom / 0.9.4.1-1

up_with_statement_python2.5 Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: add import from __future__ for handling "with" in python2.5
Author: Yaroslav Halchenko <debian@onerussian.com>

---
Origin: Debian
Forwarded: yes

--- pydicom-0.9.4.1.orig/source/dicom/contrib/pydicom_Tkinter.py
+++ pydicom-0.9.4.1/source/dicom/contrib/pydicom_Tkinter.py
@@ -26,6 +26,7 @@ Usage:
 >>> pydicom_Tkinter.show_image(df)
 ''' 
 
+from __future__ import with_statement
 import Tkinter
 import tempfile
 import os
--- pydicom-0.9.4.1.orig/source/dicom/test/version_dep.py
+++ pydicom-0.9.4.1/source/dicom/test/version_dep.py
@@ -5,6 +5,7 @@
 #    See the file license.txt included with this distribution, also
 #    available at http://pydicom.googlecode.com
 
+from __future__ import with_statement
 import warnings
 
 def capture_warnings(function, *func_args, **func_kwargs):