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

All Samples(68)  |  Call(30)  |  Derive(0)  |  Import(38)

        def open_and_read(name,mode='b'):
    return open_for_read(name,mode).read()
        


src/d/j/django-admin-report-HEAD/example/lib/reportlab/pdfbase/pdfmetrics.py   django-admin-report(Download)
from reportlab.pdfbase import _fontdata
from reportlab.lib.logger import warnOnce
from reportlab.lib.utils import rl_isfile, rl_glob, rl_isdir, open_and_read, open_and_readlines, findInPaths
from reportlab.rl_config import defaultEncoding, T1SearchPath
import rl_codecs
        pfbFileName = bruteForceSearchForFile(pfbFileName)
        assert rl_isfile(pfbFileName), 'file %s not found' % pfbFileName
        d = open_and_read(pfbFileName, 'b')
        s1, l1 = _pfbCheck(0,d,PFB_ASCII,pfbFileName)
        s2, l2 = _pfbCheck(l1,d,PFB_BINARY,pfbFileName)

src/d/j/django-admin-report-HEAD/example/lib/reportlab/graphics/renderPM.py   django-admin-report(Download)
from reportlab.pdfbase.pdfmetrics import getFont, unicode2T1
from math import sin, cos, pi, ceil
from reportlab.lib.utils import getStringIO, open_and_read
from reportlab import rl_config
 

src/m/w/mwlib.ext-0.13.2/upstream-src/docs/userguide/genuserguide.py   mwlib.ext(Download)
def run(pagesize=None, verbose=0, outDir=None):
    import sys,os
    from reportlab.lib.utils import open_and_read
    cwd = os.getcwd()
    docsDir=os.path.dirname(os.path.dirname(sys.argv[0]) or cwd)
        'app_demos',
        ):
        exec open_and_read(f+'.py',mode='t') in G, G
    del G
 

src/r/e/ReportLab-HEAD/docs/userguide/genuserguide.py   ReportLab(Download)
def run(pagesize=None, verbose=0, outDir=None):
    import sys,os
    from reportlab.lib.utils import open_and_read
    cwd = os.getcwd()
    docsDir=os.path.dirname(os.path.dirname(sys.argv[0]) or cwd)
        'app_demos',
        ):
        exec open_and_read(f+'.py',mode='t') in G, G
    del G
 

src/r/e/reportlab-3.1.8/src/reportlab/pdfbase/pdfmetrics.py   reportlab(Download)
from reportlab.pdfbase import _fontdata
from reportlab.lib.logger import warnOnce
from reportlab.lib.utils import rl_isfile, rl_glob, rl_isdir, open_and_read, open_and_readlines, findInPaths, isSeq, isStr, isUnicode, isPy3
from reportlab.rl_config import defaultEncoding, T1SearchPath
from reportlab.lib.rl_accel import unicode2T1, instanceStringWidthT1
        pfbFileName = bruteForceSearchForFile(pfbFileName)
        assert rl_isfile(pfbFileName), 'file %s not found' % pfbFileName
        d = open_and_read(pfbFileName, 'b')
        s1, l1 = _pfbCheck(0,d,PFB_ASCII,pfbFileName)
        s2, l2 = _pfbCheck(l1,d,PFB_BINARY,pfbFileName)

src/m/w/mwlib.ext-0.13.2/upstream-src/src/reportlab/pdfbase/pdfmetrics.py   mwlib.ext(Download)
from reportlab.pdfbase import _fontdata
from reportlab.lib.logger import warnOnce
from reportlab.lib.utils import rl_isfile, rl_glob, rl_isdir, open_and_read, open_and_readlines, findInPaths, remove_noprint
from reportlab import rl_config
defaultEncoding = rl_config.defaultEncoding
        pfbFileName = bruteForceSearchForFile(pfbFileName)
        assert rl_isfile(pfbFileName), 'file %s not found' % pfbFileName
        d = open_and_read(pfbFileName, 'b')
        s1, l1 = _pfbCheck(0,d,PFB_ASCII,pfbFileName)
        s2, l2 = _pfbCheck(l1,d,PFB_BINARY,pfbFileName)

src/r/e/ReportLab-HEAD/src/reportlab/pdfbase/pdfmetrics.py   ReportLab(Download)
from reportlab.pdfbase import _fontdata
from reportlab.lib.logger import warnOnce
from reportlab.lib.utils import rl_isfile, rl_glob, rl_isdir, open_and_read, open_and_readlines, findInPaths
from reportlab.rl_config import defaultEncoding, T1SearchPath
import rl_codecs
        pfbFileName = bruteForceSearchForFile(pfbFileName)
        assert rl_isfile(pfbFileName), 'file %s not found' % pfbFileName
        d = open_and_read(pfbFileName, 'b')
        s1, l1 = _pfbCheck(0,d,PFB_ASCII,pfbFileName)
        s2, l2 = _pfbCheck(l1,d,PFB_BINARY,pfbFileName)

src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/python/Lib/site-packages/sk1libs/libpdf/pdfbase/pdfmetrics.py   Spherebot-Host-GUI(Download)
from reportlab.pdfbase import _fontdata
from reportlab.lib.logger import warnOnce
from reportlab.lib.utils import rl_isfile, rl_glob, rl_isdir, open_and_read, open_and_readlines, findInPaths
from reportlab.rl_config import defaultEncoding, T1SearchPath
import rl_codecs
        pfbFileName = bruteForceSearchForFile(pfbFileName)
        assert rl_isfile(pfbFileName), 'file %s not found' % pfbFileName
        d = open_and_read(pfbFileName, 'b')
        s1, l1 = _pfbCheck(0,d,PFB_ASCII,pfbFileName)
        s2, l2 = _pfbCheck(l1,d,PFB_BINARY,pfbFileName)

src/i/e/iellos-HEAD/lib/reportlab/pdfbase/pdfmetrics.py   iellos(Download)
from reportlab.pdfbase import _fontdata
from reportlab.lib.logger import warnOnce
from reportlab.lib.utils import rl_isfile, rl_glob, rl_isdir, open_and_read, open_and_readlines, findInPaths
from reportlab.rl_config import defaultEncoding, T1SearchPath
import rl_codecs
        pfbFileName = bruteForceSearchForFile(pfbFileName)
        assert rl_isfile(pfbFileName), 'file %s not found' % pfbFileName
        d = open_and_read(pfbFileName, 'b')
        s1, l1 = _pfbCheck(0,d,PFB_ASCII,pfbFileName)
        s2, l2 = _pfbCheck(l1,d,PFB_BINARY,pfbFileName)

src/m/a/mangareader-to-ebook-HEAD/reportlab/pdfbase/pdfmetrics.py   mangareader-to-ebook(Download)
from reportlab.pdfbase import _fontdata
from reportlab.lib.logger import warnOnce
from reportlab.lib.utils import rl_isfile, rl_glob, rl_isdir, open_and_read, open_and_readlines, findInPaths
from reportlab.rl_config import defaultEncoding, T1SearchPath
import rl_codecs
        pfbFileName = bruteForceSearchForFile(pfbFileName)
        assert rl_isfile(pfbFileName), 'file %s not found' % pfbFileName
        d = open_and_read(pfbFileName, 'b')
        s1, l1 = _pfbCheck(0,d,PFB_ASCII,pfbFileName)
        s2, l2 = _pfbCheck(l1,d,PFB_BINARY,pfbFileName)

  1 | 2 | 3 | 4  Next