Issue #15 resolved

Class Decorator fixer does not add a newline at the end of the assignment statement

Joe Amenta
repo owner created an issue

{{{

!python

example class spam(object): pass print("hi") }}}

turns into

{{{

!python

class spam(object): pass spam = example(spam)print("hi") }}}

Comments (1)

  1. Joe Amenta reporter

    While I'm not happy about the way that the fixer handles newlines if the decorated classdef is at the end of a file (it removes a newline, failing my unit tests but working just fine in real-world code), I'm content with closing this bug.

  2. Log in to comment