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

All Samples(6)  |  Call(0)  |  Derive(0)  |  Import(6)
dict() -> new empty dictionary
dict(mapping) -> new dictionary initialized from a mapping object's
    (key, value) pairs
dict(iterable) -> new dictionary initialized as if via:
    d = {}
    for k, v in iterable:
        d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
    in the keyword argument list.  For example:  dict(one=1, two=2)

src/t/r/trac-HEAD/trac/util/datefmt.py   trac(Download)
else:
    from babel import Locale
    from babel.core import LOCALE_ALIASES, UnknownLocaleError
    from babel.dates import (
        format_datetime as babel_format_datetime,
                    except UnknownLocaleError:
                        pass
        if not locale.territory and locale.language in LOCALE_ALIASES:
            locale = Locale.parse(LOCALE_ALIASES[locale.language])
        return (locale.first_week_day + 1) % 7

src/b/l/bloodhound-HEAD/trac/trac/util/datefmt.py   bloodhound(Download)
    import babel
    from babel import Locale
    from babel.core import LOCALE_ALIASES
    from babel.dates import (
        format_datetime as babel_format_datetime,
        return 1 # Monday
    if babel and locale:
        if not locale.territory and locale.language in LOCALE_ALIASES:
            locale = Locale.parse(LOCALE_ALIASES[locale.language])
        return (locale.first_week_day + 1) % 7

src/t/r/Trac-1.0.1/trac/util/datefmt.py   Trac(Download)
    import babel
    from babel import Locale
    from babel.core import LOCALE_ALIASES
    from babel.dates import (
        format_datetime as babel_format_datetime,
        return 1 # Monday
    if babel and locale:
        if not locale.territory and locale.language in LOCALE_ALIASES:
            locale = Locale.parse(LOCALE_ALIASES[locale.language])
        return (locale.first_week_day + 1) % 7

src/c/k/ckan-2.2/ckan/lib/i18n.py   ckan(Download)
import os
 
from babel import Locale, localedata
from babel.core import LOCALE_ALIASES
from pylons import config
from pylons import i18n
 
import ckan.i18n
 
LOCALE_ALIASES['pt'] = 'pt_BR' # Default Portuguese language to

src/c/k/ckan-HEAD/ckan/lib/i18n.py   ckan(Download)
import os
 
from babel import Locale, localedata
from babel.core import LOCALE_ALIASES
from pylons import config
from pylons import i18n
 
import ckan.i18n
 
LOCALE_ALIASES['pt'] = 'pt_BR' # Default Portuguese language to

src/o/p/openerp-web-7.0.406/session.py   openerp-web(Download)
 
        # lang to lang_REGION (datejs only handles lang_REGION, no bare langs)
        if lang in babel.core.LOCALE_ALIASES:
            lang = babel.core.LOCALE_ALIASES[lang]
 

src/a/d/adhocracy-HEAD/src/adhocracy/i18n/__init__.py   adhocracy(Download)
import babel
from babel import Locale
from babel.core import LOCALE_ALIASES
import babel.dates
import formencode