Did I find the right examples for you? yes no

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

        def is_file(x):
    return x['type'] == 'file'
        


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
 
def unpack(payload, tweet_id, downloader, concealer, name_override=None, recur=False):
    assert_type(payload, dict, 'unpack')
 
    if is_file(payload):

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
 
def unpack(payload, tweet_id, downloader, concealer, name_override=None, recur=False):
    assert_type(payload, dict, 'unpack')
 
    if is_file(payload):