autoflake
autoflake copied to clipboard
Fixing carriage return error. Issue #326
https://github.com/PyCQA/autoflake/issues/326
I think stripping it is fine. Can you add a test? @fsouza
I ran test_autoflake.py and this is the response i get:
..............'expand-star-imports' in the config file should be a boolean .'expand-star-imports' in the config file should be a boolean .'exclude' in the config file should be a comma separated string or list of strings ................................C:\Users\rvent\anaconda3\envs\env2\lib\unittest\case.py:549: ResourceWarning: unclosed file <_io.BufferedReader name=3> method() ResourceWarning: Enable tracemalloc to get the object allocation traceback ........usage: autoflake [-h] [-c | -cd] [--imports IMPORTS | --remove-all-unused-imports] [-r] [-j n] [--exclude globs] [--expand-star-imports] [--ignore-init-module-imports] [--remove-duplicate-keys] [--remove-unused-variables] [--remove-rhs-for-unused-variables] [--ignore-pass-statements] [--ignore-pass-after-docstring] [--version] [--quiet] [-v] [--stdin-display-name STDIN_DISPLAY_NAME] [--config CONFIG_FILE] [-i | -s] files [files ...] autoflake: error: argument -s/--stdout: not allowed with argument -i/--in-place .................................................................................................................
Ran 169 tests in 3.115s
OK