format-sql icon indicating copy to clipboard operation
format-sql copied to clipboard

TypeError: expected a character buffer object

Open hut8 opened this issue 8 years ago • 2 comments

  File "/usr/local/bin/format-sql", line 11, in <module>                                                                                                      
    sys.exit(main())                                                                                                                                          
  File "/usr/local/lib/python2.7/dist-packages/format_sql/main.py", line 83, in main                                                                          
    _write_back(filename, lines, args.dry_run)                                                                                                                
  File "/usr/local/lib/python2.7/dist-packages/format_sql/main.py", line 148, in _write_back                                                                  
    f.write(lines)                                                                                                                                            
TypeError: expected a character buffer object       

I've tried this with several files, including one ruby file with embedded SQL and then just with the SQL itself. Any insight into this? I'm just surprised that others aren't getting the same error.

hut8 avatar Oct 21 '15 05:10 hut8