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

All Samples(79)  |  Call(54)  |  Derive(0)  |  Import(25)

src/c/h/ChocolateyPackages-HEAD/EthanBrown.SublimeText2.UtilPackages/tools/PackageCache/Package Control/package_control/package_manager.py   ChocolateyPackages(Download)
from .unicode import unicode_from_os
from .clear_directory import clear_directory
from .cache import (clear_cache, set_cache, get_cache, merge_cache_under_settings,
    merge_cache_over_settings, set_cache_under_settings, set_cache_over_settings)
from .versions import version_comparable, version_sort
            console_write(u'Settings change detected, clearing cache', True)
            clear_cache()
        set_cache('filtered_settings', filtered_settings)
 
    def get_metadata(self, package):
                try:
                    channel_repositories = provider.get_repositories()
                    set_cache(cache_key, channel_repositories, cache_ttl)
 
                    for repo in channel_repositories:
                        repo_packages = provider.get_packages(repo)
                        packages_cache_key = repo + '.packages'
                        set_cache(packages_cache_key, repo_packages, cache_ttl)
                    certs.update(provider_certs)
                    # Save the master list of certs, used by downloaders/cert_provider.py
                    set_cache('*.certs', certs, cache_ttl)
 
                except (DownloaderException, ClientException, ProviderException) as e:

src/a/l/Alfred-Popclip-Sublime-HEAD/Sublime Text 2/Package Control/package_control/package_manager.py   Alfred-Popclip-Sublime(Download)
from .unicode import unicode_from_os
from .clear_directory import clear_directory
from .cache import (clear_cache, set_cache, get_cache, merge_cache_under_settings,
    merge_cache_over_settings, set_cache_under_settings, set_cache_over_settings)
from .versions import version_comparable, version_sort
            console_write(u'Settings change detected, clearing cache', True)
            clear_cache()
        set_cache('filtered_settings', filtered_settings)
 
    def get_metadata(self, package):
                try:
                    channel_repositories = provider.get_repositories()
                    set_cache(cache_key, channel_repositories, cache_ttl)
 
                    for repo in channel_repositories:
                        repo_packages = provider.get_packages(repo)
                        packages_cache_key = repo + '.packages'
                        set_cache(packages_cache_key, repo_packages, cache_ttl)
                    certs.update(provider_certs)
                    # Save the master list of certs, used by downloaders/cert_provider.py
                    set_cache('*.certs', certs, cache_ttl)
 
                except (DownloaderException, ClientException, ProviderException) as e:

src/s/u/Sublime-Text-2-Settings-HEAD/Package Control/package_control/package_manager.py   Sublime-Text-2-Settings(Download)
from .unicode import unicode_from_os
from .clear_directory import clear_directory
from .cache import (clear_cache, set_cache, get_cache, merge_cache_under_settings,
    merge_cache_over_settings, set_cache_under_settings, set_cache_over_settings)
from .versions import version_comparable, version_sort
            console_write(u'Settings change detected, clearing cache', True)
            clear_cache()
        set_cache('filtered_settings', filtered_settings)
 
    def get_metadata(self, package):
                try:
                    channel_repositories = provider.get_repositories()
                    set_cache(cache_key, channel_repositories, cache_ttl)
 
                    for repo in channel_repositories:
                        repo_packages = provider.get_packages(repo)
                        packages_cache_key = repo + '.packages'
                        set_cache(packages_cache_key, repo_packages, cache_ttl)
                    certs.update(provider_certs)
                    # Save the master list of certs, used by downloaders/cert_provider.py
                    set_cache('*.certs', certs, cache_ttl)
 
                except (DownloaderException, ClientException, ProviderException) as e:

src/f/e/FED-Sublime-Settings-HEAD/Package Control/package_control/package_manager.py   FED-Sublime-Settings(Download)
from .unicode import unicode_from_os
from .clear_directory import clear_directory
from .cache import (clear_cache, set_cache, get_cache, merge_cache_under_settings,
    merge_cache_over_settings, set_cache_under_settings, set_cache_over_settings)
from .versions import version_comparable, version_sort
            console_write(u'Settings change detected, clearing cache', True)
            clear_cache()
        set_cache('filtered_settings', filtered_settings)
 
    def get_metadata(self, package):
                try:
                    channel_repositories = provider.get_repositories()
                    set_cache(cache_key, channel_repositories, cache_ttl)
 
                    for repo in channel_repositories:
                        repo_packages = provider.get_packages(repo)
                        packages_cache_key = repo + '.packages'
                        set_cache(packages_cache_key, repo_packages, cache_ttl)
                    certs.update(provider_certs)
                    # Save the master list of certs, used by downloaders/cert_provider.py
                    set_cache('*.certs', certs, cache_ttl)
 
                except (DownloaderException, ClientException, ProviderException) as e:

src/s/u/Sublime-Rails-Settings-HEAD/Package Control/package_control/package_manager.py   Sublime-Rails-Settings(Download)
from .unicode import unicode_from_os
from .clear_directory import clear_directory
from .cache import (clear_cache, set_cache, get_cache, merge_cache_under_settings,
    merge_cache_over_settings, set_cache_under_settings, set_cache_over_settings)
from .versions import version_comparable, version_sort
            console_write(u'Settings change detected, clearing cache', True)
            clear_cache()
        set_cache('filtered_settings', filtered_settings)
 
    def get_metadata(self, package):
                try:
                    channel_repositories = provider.get_repositories()
                    set_cache(cache_key, channel_repositories, cache_ttl)
 
                    for repo in channel_repositories:
                        repo_packages = provider.get_packages(repo)
                        packages_cache_key = repo + '.packages'
                        set_cache(packages_cache_key, repo_packages, cache_ttl)
                    certs.update(provider_certs)
                    # Save the master list of certs, used by downloaders/cert_provider.py
                    set_cache('*.certs', certs, cache_ttl)
 
                except (DownloaderException, ClientException, ProviderException) as e:

src/s/u/sublime_package_control-HEAD/package_control/package_manager.py   sublime_package_control(Download)
from .rmtree import rmtree
from .clear_directory import clear_directory
from .cache import (clear_cache, set_cache, get_cache, merge_cache_under_settings,
    merge_cache_over_settings, set_cache_under_settings, set_cache_over_settings)
from .versions import version_comparable, version_sort
            console_write(u'Settings change detected, clearing cache', True)
            clear_cache()
        set_cache('filtered_settings', filtered_settings)
 
    def get_metadata(self, package):
                try:
                    channel_repositories = provider.get_repositories()
                    set_cache(cache_key, channel_repositories, cache_ttl)
 
                    for repo in channel_repositories:
                        repo_packages = provider.get_packages(repo)
                        packages_cache_key = repo + '.packages'
                        set_cache(packages_cache_key, repo_packages, cache_ttl)
                    certs.update(provider_certs)
                    # Save the master list of certs, used by downloaders/cert_provider.py
                    set_cache('*.certs', certs, cache_ttl)
 
                except (DownloaderException, ClientException, ProviderException) as e:

src/c/h/ChocolateyPackages-HEAD/EthanBrown.SublimeText2.UtilPackages/tools/PackageCache/Package Control/package_control/upgraders/hg_upgrader.py   ChocolateyPackages(Download)
import os
 
from ..cache import set_cache, get_cache
from ..show_error import show_error
from .vcs_upgrader import VcsUpgrader
        incoming = len(output) > 0
 
        set_cache(cache_key, incoming, self.cache_length)
        return incoming
 

src/c/h/ChocolateyPackages-HEAD/EthanBrown.SublimeText2.UtilPackages/tools/PackageCache/Package Control/package_control/upgraders/git_upgrader.py   ChocolateyPackages(Download)
import os
 
from ..cache import set_cache, get_cache
from ..show_error import show_error
from .vcs_upgrader import VcsUpgrader
        incoming = len(output) > 0
 
        set_cache(cache_key, incoming, self.cache_length)
        return incoming
 

src/a/l/Alfred-Popclip-Sublime-HEAD/Sublime Text 2/Package Control/package_control/upgraders/hg_upgrader.py   Alfred-Popclip-Sublime(Download)
import os
 
from ..cache import set_cache, get_cache
from ..show_error import show_error
from .vcs_upgrader import VcsUpgrader
        incoming = len(output) > 0
 
        set_cache(cache_key, incoming, self.cache_length)
        return incoming
 

src/a/l/Alfred-Popclip-Sublime-HEAD/Sublime Text 2/Package Control/package_control/upgraders/git_upgrader.py   Alfred-Popclip-Sublime(Download)
import os
 
from ..cache import set_cache, get_cache
from ..show_error import show_error
from .vcs_upgrader import VcsUpgrader
        incoming = len(output) > 0
 
        set_cache(cache_key, incoming, self.cache_length)
        return incoming
 

  1 | 2 | 3  Next