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 #! /usr/bin/python
from __future__ import print_function from __future__ import absolute_import, division, print_function
import string import string
from ..utils import logger from ..utils import logger

View File

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

View File

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

View File

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