virtualEnvironment/lib/python2.7/site-packages/coverage/codeunit.py
def flat_rootname(self):
        """A base for a flat filename to correspond to this code unit.

        Useful for writing files about the code where you want all the files in
        the same directory, but need to differentiate same-named files from
        different directories.

        For example, the file a/b/c.py might return 'a_b_c'

        """
        if self.modname:
            return self.modname.replace('.', '_')
        else:
            root = os.path.splitdrive(self.name)[1]
            return root.replace('\\', '_').replace('/', '_').replace('.', '_')
def flat_rootname(self):
        if self.modname:
            return self.modname.replace('.', '_')
        else:
            root = os.path.splitdrive(self.name)[1]
            return root.replace('\\', '_').replace('/', '_').replace('.', '_')
def flat_rootname ( self ) : if self . modname : return self . modname . replace ( '.' , '_' ) else : root = os . path . splitdrive ( self . name ) [ 1 ] return root . replace ( '\\' , '_' ) . replace ( '/' , '_' ) . replace ( '.' , '_' )
A base for a flat filename to correspond to this code unit.

        Useful for writing files about the code where you want all the files in
        the same directory, but need to differentiate same-named files from
        different directories.

        For example, the file a/b/c.py might return 'a_b_c'
A base for a flat filename to correspond to this code unit .