summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2012-06-22 08:22:02 +0200
committerFlorian Bruhin <me@the-compiler.org>2012-06-22 08:22:02 +0200
commitd80f05276dd2b265dbd3e86fe766bde7243f6892 (patch)
tree5a7386be01ee8b41804ce3cff9f68e971ddf9d25
parentf166ff299a65da86035bebe03f022b5958b67669 (diff)
downloadxdd2esi-d80f05276dd2b265dbd3e86fe766bde7243f6892.tar.gz
xdd2esi-d80f05276dd2b265dbd3e86fe766bde7243f6892.zip
Rewrap stuff
-rw-r--r--esilib.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/esilib.py b/esilib.py
index 4c4e6dc..448878a 100644
--- a/esilib.py
+++ b/esilib.py
@@ -369,8 +369,8 @@ def type_to_esitype(datatype):
try:
convfunc = convfuncs[datatype.type_]
except KeyError:
- warnings.warn("Datatype {} of type {} is not implemented!"
- .format(datatype.name, repr(datatype.type_)),
+ warnings.warn("Datatype {} of type {} is not implemented!".format(
+ datatype.name, repr(datatype.type_)),
DatatypeNotImplementedWarning)
esitype = "UNKNOWN ({})".format(datatype.name)
esisize = "x"
@@ -387,9 +387,8 @@ def _esitype_int(datatype):
try:
signstring = signstrings[datatype.signed]
except KeyError:
- warnings.warn("Got datatype {} of type int without sign "
- "information, assuming signed!".format(datatype.name),
- NoSignInformationWarning)
+ warnings.warn("Got datatype {} of type int without sign information, "
+ "assuming signed!".format(datatype.name), NoSignInformationWarning)
signstring = ''
try:
sizestring = sizestrings[datatype.size]
@@ -407,9 +406,8 @@ def _esitype_float(datatype):
""" Converts float-py-datatypes to ESI """
allowed_sizes = [ 32, 64 ]
if datatype.size not in allowed_sizes:
- warnings.warn("Got datatype {} of type float with an invalid "
- "size, assuming 32 bit!".format(datatype.name),
- InvalidSizeWarning)
+ warnings.warn("Got datatype {} of type float with an invalid size, "
+ "assuming 32 bit!".format(datatype.name), InvalidSizeWarning)
esisize = 32
else:
esisize = datatype.size