Did I find the right examples for you? yes no

All Samples(44)  |  Call(40)  |  Derive(0)  |  Import(4)
unicode(object='') -> unicode object
unicode(string[, encoding[, errors]]) -> unicode object

Create a new Unicode object from the given encoded string.
encoding defaults to the current default string encoding.
errors can be 'strict', 'replace' or 'ignore' and defaults to 'strict'.

src/b/d/bdist_mpkg-0.5.0/bdist_mpkg/plists.py   bdist_mpkg(Download)
from . import __version__ as bdist_mpkg_version
from . import tools
from .py3k import unicode, u, any_str_type
 
def _major_minor(v):
    major, minor = _major_minor(version)
    return dict(
        CFBundleGetInfoString=u('%s %s' % (name, version)),
        CFBundleIdentifier=u('org.pythonmac.%s' % (name,)),
        CFBundleName=name,
        CFBundleShortVersionString=unicode(version),
        IFMajorVersion=major,
        IFMinorRevision=minor,
        IFPkgFormatVersion=0.10000000149011612,
        IFRequirementDicts=[path_requirement(u('/'))],
    d.update(dict(
        IFPkgFlagAllowBackRev=False,
        IFPkgFlagAuthorizationAction=u('AdminAuthorization'),
        #IFPkgFlagDefaultLocation=u'/Library/Python/2.3',
        IFPkgFlagFollowLinks=True,

src/b/d/bdist_mpkg-0.5.0/bdist_mpkg/cmd_bdist_mpkg.py   bdist_mpkg(Download)
from . import pkg, tools, plists
from .util import copy_tree
from .py3k import u
 
INSTALL_SCHEME_DESCRIPTIONS = dict(
    purelib = u('(Required) Pure Python modules and packages'),
    platlib = u('(Required) Python modules, extensions, and packages'),
    headers = u('(Optional) Header files for development'),
    scripts = u('(Optional) Scripts to use from the Unix shell'),

src/b/d/bdist_mpkg-0.5.0/bdist_mpkg/templates.py   bdist_mpkg(Download)
from .py3k import u
InstallationCheck = dict(
    postjaguar=(
        u("#!/bin/sh\nexit 112\n"),
        u('"16" = "This package requires Mac OS X 10.3 or later";'),
echo "Expected path not found: $IPATH"
exit 112
"""),
                u('"16" = "This package requires MacPython to be installed";'),
               ),

src/b/d/bdist_mpkg-0.5.0/bdist_mpkg/pkg.py   bdist_mpkg(Download)
from .util import copy_tree
from .templates import InstallationCheck
from .py3k import StringIO, u
 
 
        description = dist.get_description()
    if not description:
        description = u('%s %s' % (name, version))
 
    mkpath(os.path.join(pkgdir, 'Contents', 'Resources'))
 
    if admin:
        auth = u('AdminAuthorization')
    else:
        auth = u('RootAuthorization')