Menu

#25 change to cobol.defs.DDE incompatible with python 3.4

Release 4.4.8
open
None
2015-11-07
2015-10-26
RHarris
No

When running unit tests with python 3.4,

cobol/defs.py, line 988:

        return "{:s} {:s} {:s}".format( self.level, self.name, map(str,self.children) )

is causing the error:

TypeError: non-empty format string passed to object.__format__

changing that line to:

        return "{:s} {:s} {!s}".format( self.level, self.name, map(str,self.children) )

resolves the unit test errors.

Discussion

  • RHarris

    RHarris - 2015-10-26
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,14 +1,17 @@
     When running unit tests with python 3.4,
    
     cobol/defs.py, line 988:
    +
     ~~~~
             return "{:s} {:s} {:s}".format( self.level, self.name, map(str,self.children) )
     ~~~~
     is causing the error:
    +
     ~~~~
     TypeError: non-empty format string passed to object.__format__
     ~~~~
     changing that line to:
    +
     ~~~~
             return "{:s} {:s} {!s}".format( self.level, self.name, map(str,self.children) )
     ~~~~
    
     
  • Steven F. Lott

    Steven F. Lott - 2015-11-07
    • Milestone: Release 4.4.7 --> Release 4.4.8
     

Log in to post a comment.

MongoDB Logo MongoDB