reformat slightly so we get a pylint 10

This commit is contained in:
Chris Jones 2009-08-18 12:35:06 +01:00
parent 4150249f87
commit d00e2fe9dd
1 changed files with 8 additions and 5 deletions

View File

@ -17,16 +17,19 @@
"""Terminator by Chris Jones <cmsj@tenshu.net>"""
from terminatorlib.version import APP_NAME
from version import APP_NAME
from util import dbg
try:
import gettext
gettext.install(APP_NAME)
except ImportError:
print "Using fallback _()"
dbg("Using fallback _()")
import __builtin__
def dummytrans (text):
"""A _ function for systems without gettext. Effectively a NOOP"""
return text
return(text)
__builtin__.__dict__['_'] = dummytrans