changing to __future__ (consistency across project)

This commit is contained in:
Martin A. Brown 2016-02-11 11:28:38 -08:00
parent 303c133faf
commit 627e2ff636
4 changed files with 11 additions and 5 deletions

View File

@ -1,6 +1,6 @@
#! /usr/bin/python
from __future__ import print_function
from __future__ import absolute_import, division, print_function
import string
from ..utils import logger

View File

@ -1,6 +1,6 @@
#! /usr/bin/python
from __future__ import print_function
from __future__ import absolute_import, division, print_function
import os
import inspect
@ -46,7 +46,7 @@ def guess(thing):
# -- for this extension, multiple document types, probably SGML, XML
#
logger.debug("Extension is %s for %s; multiple possible document types.",
ext, fin.name)
ext, fin.name)
for doctype in possible:
logger.debug("Extension is %s for %s; %s.", ext, fin.name, doctype)
@ -58,7 +58,7 @@ def guess(thing):
if not guesses:
logger.warning("Extension is %s for %s; no matching signature found.",
ext, fin.name)
ext, fin.name)
return None
if len(guesses) == 1:
_, doctype = guesses.pop()

View File

@ -1,6 +1,6 @@
#! /usr/bin/python
from __future__ import print_function
from __future__ import absolute_import, division, print_function
import os
import sys

View File

@ -1,5 +1,7 @@
#! /usr/bin/python
from __future__ import absolute_import, division, print_function
import sys
import logging
@ -12,5 +14,9 @@ def getLogger(**opts):
logger = getLogger()
def runner(cmd, env, stdin, stdout, stderr):
pass
#
# -- end of file