GeospatialPython / pyshp

This library reads and writes ESRI Shapefiles in pure Python.
MIT License
1.09k stars 259 forks source link

*.py: Remove trailing empty spaces. #279

Closed schwehr closed 1 week ago

schwehr commented 2 weeks ago

Before:

file *.py
setup.py:          Python script, ASCII text executable
shapefile.py:      Python script, ASCII text executable, with CRLF line terminators
test_shapefile.py: Python script, ASCII text executable

Do the strip:

perl -pi -e 's/\s+\n/\n/g' *.py

After:

file *.py
setup.py:          Python script, ASCII text executable
shapefile.py:      Python script, ASCII text executable
test_shapefile.py: Python script, ASCII text executable

Move shapefile.py back to dos formatting:

unix2dos shapefile.py
JamesParrott commented 1 week ago

Looks fine. Many thanks Kurt.