pyslha.py

changeset 213
11aef4bd7802
parent 212
3a6db3deedef
child 214
fa07ed634b18
     1.1 --- a/pyslha.py	Mon Apr 29 14:55:44 2013 +0200
     1.2 +++ b/pyslha.py	Mon Apr 29 14:59:23 2013 +0200
     1.3 @@ -79,7 +79,7 @@
     1.4  def _autostr(var, precision=8):
     1.5      """Automatically format numerical types as the right sort of string."""
     1.6      if type(var) is float:
     1.7 -        return ("%." + str(precision) + "e") % var
     1.8 +        return ("% ." + str(precision) + "e") % var
     1.9      return str(var)
    1.10  
    1.11  

mercurial