old_contents: import os
  # shut up useless SA warning:
  import warnings
  warnings.filterwarnings(
      'ignore', 'Unicode type received non-unicode bind param value.')
  
  from dataset.persistence.util import sqlite_datetime_fix
  from dataset.persistence.database import Database
  from dataset.persistence.table import Table
  from dataset.freeze.app import freeze
  
  __all__ = ['Database', 'Table', 'freeze', 'connect']
  
  
  def connect(url=None, schema=None, reflectMetadata=True, engine_kwargs=None,
              reflect_views=True):
      """
      Opens a new connection to a database.
  
      *url* can be any valid `SQLAlchemy engine URL`_.  If *url* is not defined
      it will try to use *DATABASE_URL* from environment variable.  Returns an
      instance of :py:class:`Database <dataset.Database>`. Set *reflectMetadata*
      to False if you don't want the entire database schema to be pre-loaded.
      This significantly speeds up connecting to large databases with lots of
      tables. *reflect_views* can be set to False if you don't want views to be
      loaded.  Additionally, *engine_kwargs* will be directly passed to
      SQLAlchemy, e.g.  set *engine_kwargs={'pool_recycle': 3600}* will avoid `DB
      connection timeout`_.
  
      ::
  
          db = dataset.connect('sqlite:///factbook.db')
  
      .. _SQLAlchemy Engine URL: http://docs.sqlalchemy.org/en/latest/core/engines.html#sqlalchemy.create_engine
      .. _DB connection timeout: http://docs.sqlalchemy.org/en/latest/core/pooling.html#setting-pool-recycle
      """
      if url is None:
          url = os.environ.get('DATABASE_URL', url)
  
      if url.startswith("sqlite://"):
          sqlite_datetime_fix()
  
      return Database(url, schema=schema, reflectMetadata=reflectMetadata,
                      engine_kwargs=engine_kwargs, reflect_views=reflect_views)
  
new_contents: import os
  import warnings
  from dataset.persistence.util import sqlite_datetime_fix
  from dataset.persistence.database import Database
  from dataset.persistence.table import Table
  from dataset.freeze.app import freeze
  
  # shut up useless SA warning:
  warnings.filterwarnings(
      'ignore', 'Unicode type received non-unicode bind param value.')
  
  __all__ = ['Database', 'Table', 'freeze', 'connect']
  
  
  def connect(url=None, schema=None, reflectMetadata=True, engine_kwargs=None,
              reflect_views=True):
      """
      Opens a new connection to a database.
  
      *url* can be any valid `SQLAlchemy engine URL`_.  If *url* is not defined
      it will try to use *DATABASE_URL* from environment variable.  Returns an
      instance of :py:class:`Database <dataset.Database>`. Set *reflectMetadata*
      to False if you don't want the entire database schema to be pre-loaded.
      This significantly speeds up connecting to large databases with lots of
      tables. *reflect_views* can be set to False if you don't want views to be
      loaded.  Additionally, *engine_kwargs* will be directly passed to
      SQLAlchemy, e.g.  set *engine_kwargs={'pool_recycle': 3600}* will avoid `DB
      connection timeout`_.
  
      ::
  
          db = dataset.connect('sqlite:///factbook.db')
  
      .. _SQLAlchemy Engine URL: http://docs.sqlalchemy.org/en/latest/core/engines.html#sqlalchemy.create_engine
      .. _DB connection timeout: http://docs.sqlalchemy.org/en/latest/core/pooling.html#setting-pool-recycle
      """
      if url is None:
          url = os.environ.get('DATABASE_URL', url)
  
      if url.startswith("sqlite://"):
          sqlite_datetime_fix()
  
      return Database(url, schema=schema, reflectMetadata=reflectMetadata,
                      engine_kwargs=engine_kwargs, reflect_views=reflect_views)
  
subject: Make Travis happy.