Hi all,
I need to limit as much as possible the lenght of a source line,
stripping white spaces (except indentation).
For example:
.. . max_move and AC_RowStack.acc eptsCards ( self, from_stack, cards
)
must be reduced to:
.. . max_move and AC_RowStack.acc eptsCards(self, from_stack,card s)
My solution has been (wrogly): ''.join(source_ line.split())
which gives:
max_moveandAC_R owStack.accepts Cards(self,from _stack,cards)
Without considering the stripping of indentation (not a big problem),
the problem is instead caused by the reserved words (like 'and').
Can you help me? Thanks.
I need to limit as much as possible the lenght of a source line,
stripping white spaces (except indentation).
For example:
.. . max_move and AC_RowStack.acc eptsCards ( self, from_stack, cards
)
must be reduced to:
.. . max_move and AC_RowStack.acc eptsCards(self, from_stack,card s)
My solution has been (wrogly): ''.join(source_ line.split())
which gives:
max_moveandAC_R owStack.accepts Cards(self,from _stack,cards)
Without considering the stripping of indentation (not a big problem),
the problem is instead caused by the reserved words (like 'and').
Can you help me? Thanks.
Comment