'native_corefile_pipe(self) -> str'

def native_corefile_pipe(self):

    if ('/apport' not in self.kernel_core_pattern):
        log.warn_once(('Unsupported    core_pattern:    %r' % self.kernel_core_pattern))
        return None
    apport_core = self.apport_corefile()
    if apport_core:
        filename = ('core.%s.%i.apport' % (self.basename, self.pid))
        with open(filename, 'wb+') as f:
            f.write(apport_core)
        return filename
    self.kernel_core_pattern = 'core'
    return self.native_corefile_pattern()
