Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

slicker eats end-of-line comments #32

@csilvers

Description

@csilvers

I had code like this:

def foo():
    ...
    self.assertEquals('some_arg=42', query)  # make sure query is preserved


@testsize.small
class ViewExerciseDeprecatedTest(web.testutil.webapp_testbase.Webapp2TestBase):
     ...


class GetRenderDataForPracticeTask(...):

I did slicker.py ViewExerciseDeprecatedTest <some other file>
and it moved the # make sure query is preserved comment along with the class!

It also ate too many blank lines, so the resulting file had only one line between foo() and GetRenderDataForPracticeTask().

To reproduce in webapp, check out d8e31c746e96fd and run
slicker.py content_render.exercise_handlers_test.ViewExerciseDeprecatedTest content_render/deprecated_handlers_test.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions