Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove trailing spaces from file name.

Caused some problems when dragging files from the Finder on OSX.
  • Loading branch information...
commit 06d5a43619dfa62738fd39ef70e57f24b3ef1275 1 parent 15630f7
Alex Chabot authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  pygmynote.py
View
2  pygmynote.py
@@ -157,7 +157,7 @@ def escapechar(sel):
notetags = escapechar(raw_input('Tags: '))
notefile = escapechar(raw_input('Enter path to file: '))
notetype="A"
- f=open(notefile, 'rb')
+ f=open(notefile.rstrip(), 'rb')
ablob = f.read()
f.close()
cursor.execute("INSERT INTO notes (note, tags, type, ext, file) VALUES('" + notetext + "', '" + notetags + "', '" + notetype + "', '" + notefile[-3:] + "', ?)", [sqlite.Binary(ablob)])
Please sign in to comment.
Something went wrong with that request. Please try again.