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

All Samples(99)  |  Call(54)  |  Derive(0)  |  Import(45)

        def import_zlib():
    try:
        import zlib
    except ImportError:
        zlib = None
        from reportlab.rl_config import ZLIB_WARNINGS
        if ZLIB_WARNINGS: warnOnce('zlib not available')
    return zlib
        


src/d/j/django-admin-report-HEAD/example/lib/reportlab/pdfgen/canvas.py   django-admin-report(Download)
from reportlab.pdfgen  import pdfgeom, pathobject, textobject
from reportlab.lib.colors import black, _chooseEnforceColorSpace
from reportlab.lib.utils import import_zlib, ImageReader, fp_str, _digester
from reportlab.lib.boxstuff import aspectRatioFix
 
digitPat = re.compile('\d')  #used in decimal alignment
zlib = import_zlib()

src/d/j/django-admin-report-HEAD/example/lib/reportlab/pdfbase/pdfdoc.py   django-admin-report(Download)
from reportlab.pdfbase.pdfutils import LINEEND # this constant needed in both
from reportlab import rl_config
from reportlab.lib.utils import import_zlib, open_for_read, fp_str, _digester
from reportlab.pdfbase import pdfmetrics
try:
    def encode(self, text):
        from reportlab.lib.utils import import_zlib
        zlib = import_zlib()
        if not zlib: raise ImportError, "cannot z-compress zlib unavailable"
        return zlib.compress(text)
    def decode(self, encoded):
        from reportlab.lib.utils import import_zlib
        zlib = import_zlib()

src/d/j/django-admin-report-HEAD/example/lib/reportlab/pdfgen/pdfimages.py   django-admin-report(Download)
from reportlab.pdfbase import pdfdoc
from reportlab.lib.utils import fp_str, getStringIO
from reportlab.lib.utils import import_zlib, haveImages
from reportlab.lib.boxstuff import aspectRatioFix
 
    def cache_imagedata(self):
        image = self.image
        if not pdfutils.cachedImageExists(image):
            zlib = import_zlib()
            if not zlib: return
            return self._jpg_imagedata(fp)
        self.source = 'PIL'
        zlib = import_zlib()
        if not zlib: return
 

src/r/e/reportlab-3.1.8/src/reportlab/pdfbase/pdfdoc.py   reportlab(Download)
from reportlab.pdfbase import pdfutils
from reportlab import rl_config
from reportlab.lib.utils import import_zlib, open_for_read, makeFileName, isSeq, isBytes, isUnicode, _digester, isStr, bytestr, isPy3
from reportlab.lib.rl_accel import escapePDF, fp_str, asciiBase85Encode, asciiBase85Decode
from reportlab.pdfbase import pdfmetrics
    def encode(self, text):
        from reportlab.lib.utils import import_zlib
        zlib = import_zlib()
        if not zlib: raise ImportError("cannot z-compress zlib unavailable")
        if isUnicode(text):
            text = text.encode('utf8')
        return zlib.compress(text)
    def decode(self, encoded):
        from reportlab.lib.utils import import_zlib
        zlib = import_zlib()

src/r/e/reportlab-3.1.8/src/reportlab/pdfgen/canvas.py   reportlab(Download)
from reportlab.pdfgen  import pdfgeom, pathobject, textobject
from reportlab.lib.colors import black, _chooseEnforceColorSpace, Color, CMYKColor, toColor
from reportlab.lib.utils import import_zlib, ImageReader, isSeq, isStr, isUnicode, _digester
from reportlab.lib.rl_accel import fp_str, escapePDF
from reportlab.lib.boxstuff import aspectRatioFix
 
digitPat = re.compile('\d')  #used in decimal alignment
zlib = import_zlib()

src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/python/Lib/site-packages/sk1libs/libpdf/pdfgen/canvas.py   Spherebot-Host-GUI(Download)
from reportlab.pdfgen  import pdfgeom, pathobject, textobject
from reportlab.lib.colors import black
from reportlab.lib.utils import import_zlib, ImageReader, fp_str, _digester
from reportlab.lib.boxstuff import aspectRatioFix
 
digitPat = re.compile('\d')  #used in decimal alignment
zlib = import_zlib()

src/m/w/mwlib.ext-0.13.2/upstream-src/src/reportlab/pdfgen/canvas.py   mwlib.ext(Download)
from reportlab.pdfgen  import pdfgeom, pathobject, textobject
from reportlab.lib.colors import black, _chooseEnforceColorSpace
from reportlab.lib.utils import import_zlib, ImageReader, fp_str, _digester
from reportlab.lib.boxstuff import aspectRatioFix
 
digitPat = re.compile('\d')  #used in decimal alignment
zlib = import_zlib()

src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/python/Lib/site-packages/sk1libs/libpdf/pdfbase/pdfdoc.py   Spherebot-Host-GUI(Download)
from reportlab.pdfbase.pdfutils import LINEEND # this constant needed in both
from reportlab import rl_config
from reportlab.lib.utils import import_zlib, open_for_read, fp_str, _digester
from reportlab.pdfbase import pdfmetrics
try:
    def encode(self, text):
        from reportlab.lib.utils import import_zlib
        zlib = import_zlib()
        if not zlib: raise ImportError, "cannot z-compress zlib unavailable"
        return zlib.compress(text)
    def decode(self, encoded):
        from reportlab.lib.utils import import_zlib
        zlib = import_zlib()

src/m/w/mwlib.ext-0.13.2/upstream-src/src/reportlab/pdfbase/pdfdoc.py   mwlib.ext(Download)
from reportlab.pdfbase.pdfutils import LINEEND # this constant needed in both
from reportlab import rl_config
from reportlab.lib.utils import import_zlib, open_for_read, fp_str, _digester
from reportlab.pdfbase import pdfmetrics
try:
    def encode(self, text):
        from reportlab.lib.utils import import_zlib
        zlib = import_zlib()
        if not zlib: raise ImportError, "cannot z-compress zlib unavailable"
        return zlib.compress(text)
    def decode(self, encoded):
        from reportlab.lib.utils import import_zlib
        zlib = import_zlib()

src/r/e/ReportLab-HEAD/src/reportlab/pdfgen/canvas.py   ReportLab(Download)
from reportlab.pdfgen  import pdfgeom, pathobject, textobject
from reportlab.lib.colors import black, _chooseEnforceColorSpace
from reportlab.lib.utils import import_zlib, ImageReader, fp_str, _digester
from reportlab.lib.boxstuff import aspectRatioFix
 
digitPat = re.compile('\d')  #used in decimal alignment
zlib = import_zlib()

  1 | 2 | 3  Next