myint/autopep8 — comment on commit 88eacd7e13ffab3ebfdbb4dfaec876e02d0f6afa
File:  line 0
By myint:

Previously, --diff produced the following incorrect output.

```
$ python autopep8.py --diff test_target.py
--- oiginal
+++ fixed
@@ -1,904 +1,80 @@
-i-m-p-o-r-t- -s-y-s-
-i-m-p-o-r-t- -o-s+import sys
+import os

-
-d-e-f- -f-o-o-(-)-:-
- - - - -i-m-p-o-r-t- -s-u-b-p-r-o-c-e-s-s-
- - - - -i-m-p-o-r-t- -a-r-g-p-a-r-s-e+def foo():
+ import subprocess
+ import argparse
...
```

I've modified the code to produce the correct result.

```

$ python autopep8.py --diff test_target.py
--- original
+++ fixed
@@ -1,76 +1,80 @@
-import sys, os
+import sys
+import os
+

def foo():
- import subprocess, argparse
+ import subprocess
+ import argparse
```