Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/p/y/pyth-0.5.6/pyth/plugins/rtf15/reader.py   pyth(Download)
    def go(self):
        self.source.seek(0)
 
        if self.source.read(5) != r"{\rtf":
            from pyth.errors import WrongFileType
            raise WrongFileType("Doesn't look like an RTF file")

src/p/y/pyth-HEAD/pyth/plugins/rtf15/reader.py   pyth(Download)
    def go(self):
        self.source.seek(0)
 
        if self.source.read(5) != r"{\rtf":
            from pyth.errors import WrongFileType
            raise WrongFileType("Doesn't look like an RTF file")