Did I find the right examples for you? yes no

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

        def is_dir(x):
    return x['type'] == 'dir'
        


src/t/w/TweetFS-0.1/tweetfs/unpack.py   TweetFS(Download)
from os import chdir, chmod, mkdir, tmpfile
 
from util import is_file, is_dir, assert_type
 
 
    print 'serialized payload from twitter: %s bytes' % len(s)
    x = bson.loads(s)
    if not is_file(x) and not is_dir(x):
        raise ArgumentError('FATAL: bad type "%s"' % x['type'])
    return x
        chmod(name, perms)
        print ''
    elif is_dir(payload):
        ids, name, perms = payload['ids'], payload['name'], int(payload['perms'])
        if name_override:

src/t/w/tweetfs-HEAD/tweetfs/unpack.py   tweetfs(Download)
from os import chdir, chmod, mkdir, tmpfile
 
from util import is_file, is_dir, assert_type
 
 
    print 'serialized payload from twitter: %s bytes' % len(s)
    x = bson.loads(s)
    if not is_file(x) and not is_dir(x):
        raise ArgumentError('FATAL: bad type "%s"' % x['type'])
    return x
        chmod(name, perms)
        print ''
    elif is_dir(payload):
        ids, name, perms = payload['ids'], payload['name'], int(payload['perms'])
        if name_override: