Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(7)  |  Derive(1)  |  Import(2)

src/c/h/chkfs-0.990c613daa19960e8a900cbffc5472e44282b6/chkfs.py   chkfs(Download)
import inspect
 
from chkstore import CHKStore
from jsonchkstore import JsonCHKStore
 
    def __init__(self, storagedir):
        [blobpath, snapshotpath, dirnodepath] = CHKFS._get_chkpaths(storagedir)
 
        self._log = logging.getLogger(type(self).__name__)
        self._blobstore = CHKStore(blobpath)

src/j/s/jsonchkstore-0.99f5191420dd2749efb3a7c54a9280183983f4/jsonchkstore.py   jsonchkstore(Download)
import simplejson
 
from chkstore import CHKStore
 
 
class JsonCHKStore (CHKStore):

src/c/h/chkstore-0.0b59bb228b062ead4b1080af280859865d718b/test_chkstore.py   chkstore(Download)
    def setUp(self):
        TmpDirMixin.setUp(self)
        self.storedir = os.path.join(self.tmpdir, 'chkstore')
        chkstore.CHKStore.initialize_storage_directory(self.storedir)
        self.store = chkstore.CHKStore(self.storedir)
            f.write('This is not a schema file.')
        try:
            chkstore.CHKStore(invalid)
        except chkstore.MalformedStorageDirectory, e:
            expected = '[Errno {0!r}]'.format(errno.ENOENT)
            f.write('This is not a schema file.')
        try:
            chkstore.CHKStore(invalid)
        except chkstore.MalformedStorageDirectory:
            pass # Success.
            f.write('SERIALIZATION_VERSION: 9120938')
        try:
            chkstore.CHKStore(invalid)
        except chkstore.MalformedStorageDirectory:
            pass # Success.
    def test_listkeys_with_two_entries(self):
        # First insert two entries:
        chkstore.CHKStore.initialize_storage_directory(self._storagedir)
        store = chkstore.CHKStore(self._storagedir)