1 |
neurogeek 08/10/04 17:28:51 |
2 |
|
3 |
Added: Cheetah-0.9.18__future__imports.patch |
4 |
Log: |
5 |
Revision bump. Fixes bug #237214. Thanks to Martin Zibricky <matysek03@××××××.cz> for the patch |
6 |
(Portage version: 2.2_rc8/cvs/Linux 2.6.18-gentoo-r3 i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-python/cheetah/files/Cheetah-0.9.18__future__imports.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/cheetah/files/Cheetah-0.9.18__future__imports.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/cheetah/files/Cheetah-0.9.18__future__imports.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: Cheetah-0.9.18__future__imports.patch |
15 |
=================================================================== |
16 |
diff -Naur Cheetah-0.9.18-orig/src/NameMapper.py Cheetah-0.9.18/src/NameMapper.py |
17 |
--- Cheetah-0.9.18-orig/src/NameMapper.py 2008-09-08 12:53:08.000000000 +0000 |
18 |
+++ Cheetah-0.9.18/src/NameMapper.py 2008-09-08 13:07:57.000000000 +0000 |
19 |
@@ -1,6 +1,12 @@ |
20 |
#!/usr/bin/env python |
21 |
# $Id: Cheetah-0.9.18__future__imports.patch,v 1.1 2008/10/04 17:28:51 neurogeek Exp $ |
22 |
|
23 |
+from __future__ import generators |
24 |
+import types |
25 |
+from types import StringType, InstanceType, ClassType, TypeType |
26 |
+from pprint import pformat |
27 |
+import inspect |
28 |
+ |
29 |
"""This module supports Cheetah's optional NameMapper syntax. |
30 |
|
31 |
Overview |
32 |
@@ -143,12 +149,6 @@ |
33 |
"\nChuck Esterbrook <echuck@××××××××××.com>" |
34 |
__revision__ = "$Revision: 1.1 $"[11:-2] |
35 |
|
36 |
-from __future__ import generators |
37 |
-import types |
38 |
-from types import StringType, InstanceType, ClassType, TypeType |
39 |
-from pprint import pformat |
40 |
-import inspect |
41 |
- |
42 |
_INCLUDE_NAMESPACE_REPR_IN_NOTFOUND_EXCEPTIONS = False |
43 |
_ALLOW_WRAPPING_OF_NOTFOUND_EXCEPTIONS = True |
44 |
__all__ = ['NotFound', |
45 |
diff -Naur Cheetah-0.9.18-orig/src/Tests/NameMapper.py Cheetah-0.9.18/src/Tests/NameMapper.py |
46 |
--- Cheetah-0.9.18-orig/src/Tests/NameMapper.py 2008-09-08 12:53:08.000000000 +0000 |
47 |
+++ Cheetah-0.9.18/src/Tests/NameMapper.py 2008-09-08 13:03:27.000000000 +0000 |
48 |
@@ -1,5 +1,12 @@ |
49 |
#!/usr/bin/env python |
50 |
# $Id: Cheetah-0.9.18__future__imports.patch,v 1.1 2008/10/04 17:28:51 neurogeek Exp $ |
51 |
+ |
52 |
+from __future__ import generators |
53 |
+import sys |
54 |
+import types |
55 |
+import os |
56 |
+import os.path |
57 |
+ |
58 |
"""NameMapper Tests |
59 |
|
60 |
Meta-Data |
61 |
@@ -12,12 +19,6 @@ |
62 |
__author__ = "Tavis Rudd <tavis@××××××××××.com>" |
63 |
__revision__ = "$Revision: 1.1 $"[11:-2] |
64 |
|
65 |
-from __future__ import generators |
66 |
-import sys |
67 |
-import types |
68 |
-import os |
69 |
-import os.path |
70 |
- |
71 |
import unittest_local_copy as unittest |
72 |
from Cheetah.NameMapper import NotFound, valueForKey, \ |
73 |
valueForName, valueFromSearchList, valueFromFrame, valueFromFrameOrSearchList |