mirror of https://github.com/tLDP/python-tldp
changing to __future__ (consistency across project)
This commit is contained in:
parent
303c133faf
commit
627e2ff636
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#! /usr/bin/python
|
||||
|
||||
from __future__ import print_function
|
||||
from __future__ import absolute_import, division, print_function
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue