Did I find the right examples for you? yes no

All Samples(60919)  |  Call(10)  |  Derive(0)  |  Import(60909)

src/s/q/SQLObject-1.6.0b1dev-r4713/sqlobject/col.py   SQLObject(Download)
except ImportError:
    try:
        import DateTime # old version of mxDateTime, or Zope's Version if we're running with Zope
    except ImportError:
        mxdatetime_available = False

src/l/i/libopencore-HEAD/libopencore/import_utils.py   libopencore(Download)
import DateTime
import time
 
def parse_listen_settings(ini):
    ini = ini.strip()

src/e/r/erp5-HEAD/bt5/erp5_payzen_secure_payment/TestTemplateItem/portal_components/test.erp5.testERP5PayzenSecurePayment.py   erp5(Download)
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
import hashlib
import DateTime
import random
 

src/r/e/RestrictedPython-3.6.0/src/RestrictedPython/tests/testUtiliities.py   RestrictedPython(Download)
    def test_DateTime_in_utility_builtins_if_importable(self):
        try:
            import DateTime
        except ImportError:
            pass

src/c/o/collective.downloadtracker-1.0b1/src/collective/downloadtracker/tests/test_setup.py   collective.downloadtracker(Download)
# -*- coding: utf-8 -*-
"""Setup/installation tests for this package."""
 
import DateTime
import os.path

src/c/o/collective.formcriteria-2.0/src/collective/formcriteria/testing.py   collective.formcriteria(Download)
import StringIO
import urlparse
 
import DateTime
 

src/v/i/vice.plone.outbound-1.0rc1/vice/plone/outbound/tests/testFunctional.py   vice.plone.outbound(Download)
import os
import warnings
import DateTime
from Products.Five import zcml
from Products.CMFCore.utils import getToolByName

src/p/l/plone.app.caching-1.2.1/plone/app/caching/tests/test_lastmodified.py   plone.app.caching(Download)
import time
import datetime
import DateTime
 
from dateutil.tz import tzlocal

src/d/o/DocumentTemplate-2.13.2/src/DocumentTemplate/tests/testDTML.py   DocumentTemplate(Download)
    def testDTMLDateFormatting(self):
        import DateTime
        html = self.doc_class(
        "<dtml-var name capitalize spacify> is "
        "<dtml-var date fmt=year>/<dtml-var date "
    def testStringDateFormatting(self):
        import DateTime
        from DocumentTemplate.DT_HTML import String
        html = String("%(name capitalize spacify)s is "
                      "%(date fmt=year)s/%(date fmt=month)s/%(date fmt=day)s")

src/c/o/collective.socialpublisher-1.0a3/collective/socialpublisher/tests/test_misc.py   collective.socialpublisher(Download)
# -*- coding: utf8 -*-
 
import unittest2 as unittest
 
import DateTime

Previous  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next