Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 293974 | Differences between
and this patch

Collapse All | Expand All

(-)Cheetah-2.4.2.1.orig/cheetah/Template.py (-1 / +1 lines)
Lines 32-38 Link Here
32
32
33
filetype = None
33
filetype = None
34
34
35
if isinstance(sys.version_info, tuple):
35
if isinstance(sys.version_info[:], tuple):
36
    # Python 2.xx
36
    # Python 2.xx
37
    filetype = types.FileType
37
    filetype = types.FileType
38
    def createMethod(func, cls):
38
    def createMethod(func, cls):
(-)Cheetah-2.4.2.1.orig/cheetah/Tests/SyntaxAndOutput.py (-3 / +3 lines)
Lines 847-863 Link Here
847
    def test10(self):
847
    def test10(self):
848
        r"""func placeholder - with ('''\nstring\n''')"""
848
        r"""func placeholder - with ('''\nstring\n''')"""
849
        self.verify("$aFunc('''\naoeu\n''')",
849
        self.verify("$aFunc('''\naoeu\n''')",
850
                    "\naoeu\n")
850
                    "\naoeu\n", convertEOLs=False)
851
851
852
    def test11(self):
852
    def test11(self):
853
        r"""func placeholder - with ('''\nstring'\n''')"""
853
        r"""func placeholder - with ('''\nstring'\n''')"""
854
        self.verify("$aFunc('''\naoeu'\n''')",
854
        self.verify("$aFunc('''\naoeu'\n''')",
855
                    "\naoeu'\n")
855
                    "\naoeu'\n", convertEOLs=False)
856
856
857
    def test12(self):
857
    def test12(self):
858
        r'''func placeholder - with ("""\nstring\n""")'''
858
        r'''func placeholder - with ("""\nstring\n""")'''
859
        self.verify('$aFunc("""\naoeu\n""")',
859
        self.verify('$aFunc("""\naoeu\n""")',
860
                    "\naoeu\n")
860
                    "\naoeu\n", convertEOLs=False)
861
861
862
    def test13(self):
862
    def test13(self):
863
        """func placeholder - with (string*int)"""
863
        """func placeholder - with (string*int)"""

Return to bug 293974