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

slicker eats end-of-line comments #32

Open
csilvers opened this issue Jul 13, 2018 · 0 comments
Open

slicker eats end-of-line comments #32

csilvers opened this issue Jul 13, 2018 · 0 comments

Comments

@csilvers
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant