Did I find the right examples for you? yes no

All Samples(173)  |  Call(156)  |  Derive(0)  |  Import(17)

        def S_ISSOCK(mode):
    return S_IFMT(mode) == S_IFSOCK
        


src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/twisted/conch/ls.py   hortonworks-sandbox(Download)
    elif stat.S_ISFIFO(ft): perms[0] = 'f'
    elif stat.S_ISLNK(ft): perms[0] = 'l'
    elif stat.S_ISSOCK(ft): perms[0] = 's'
    else: perms[0] = '!'
    # user

src/l/i/lib-pyFreenet-staging-HEAD/fcp/freenetfs.py   lib-pyFreenet-staging(Download)
            'isfifo' : stat.S_ISFIFO(mode),
            'islink'  : stat.S_ISLNK(mode),
            'issock' : stat.S_ISSOCK(mode),
            'mode'   : mode,
            'inode'  : info[stat.ST_INO],
 
        if attr == 'issock':
            return stat.S_ISSOCK(self.mode)
 
        if attr == 'inode':

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/twisted/conch/ls.py   oh-mainline(Download)
    elif stat.S_ISFIFO(ft): perms[0] = 'f'
    elif stat.S_ISLNK(ft): perms[0] = 'l'
    elif stat.S_ISSOCK(ft): perms[0] = 's'
    else: perms[0] = '!'
    # user

src/m/y/mythbox-HEAD/resources/lib/twisted/twisted/conch/ls.py   mythbox(Download)
    elif stat.S_ISFIFO(ft): perms[0] = 'f'
    elif stat.S_ISLNK(ft): perms[0] = 'l'
    elif stat.S_ISSOCK(ft): perms[0] = 's'
    else: perms[0] = '!'
    # user

src/s/u/SubliminalCollaborator-HEAD/libs/twisted/conch/ls.py   SubliminalCollaborator(Download)
    elif stat.S_ISFIFO(ft): perms[0] = 'f'
    elif stat.S_ISLNK(ft): perms[0] = 'l'
    elif stat.S_ISSOCK(ft): perms[0] = 's'
    else: perms[0] = '!'
    # user

src/z/o/zope.app.twisted-3.5.0/src/twisted/conch/ls.py   zope.app.twisted(Download)
    elif stat.S_ISFIFO(ft): perms[0] = 'f'
    elif stat.S_ISLNK(ft): perms[0] = 'l'
    elif stat.S_ISSOCK(ft): perms[0] = 's'
    else: perms[0] = '!'
    # user

src/t/w/Twisted-13.2.0/twisted/conch/ls.py   Twisted(Download)
    elif stat.S_ISFIFO(ft): perms[0] = 'f'
    elif stat.S_ISLNK(ft): perms[0] = 'l'
    elif stat.S_ISSOCK(ft): perms[0] = 's'
    else: perms[0] = '!'
    # user

src/u/n/UnitScan-HEAD/twisted/conch/ls.py   UnitScan(Download)
    elif stat.S_ISFIFO(ft): perms[0] = 'f'
    elif stat.S_ISLNK(ft): perms[0] = 'l'
    elif stat.S_ISSOCK(ft): perms[0] = 's'
    else: perms[0] = '!'
    # user

src/b/u/bup-HEAD/lib/bup/xstat.py   bup(Download)
    elif pystat.S_ISLNK(mode):
        result += 'l'
    elif pystat.S_ISSOCK(mode):
        result += 's'
    else:
    elif pystat.S_ISFIFO(mode):
        return '|'
    elif pystat.S_ISSOCK(mode):
        return '='
    else:

src/p/y/pyful-0.2.2/pyful/filer.py   pyful(Download)
    def issocket(self):
        return stat.S_ISSOCK(self.stat.st_mode)
 
    def ischr(self):
        return stat.S_ISCHR(self.lstat.st_mode)
    def get_permission(self):
        perm = ["-"] * 10
        if stat.S_ISDIR(self.lstat.st_mode): perm[0] = "d"
        elif stat.S_ISLNK(self.lstat.st_mode): perm[0] = "l"
        elif stat.S_ISSOCK(self.lstat.st_mode): perm[0] = "s"

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next