diff --git a/README.md b/README.md index 24747dc..1bfa2db 100644 --- a/README.md +++ b/README.md @@ -410,7 +410,7 @@ geeknote edit --note "Naughty List" --title "Nice List" --content "WRITE" ### Notes: Showing note content -You can output any note in console using command *show* either independently or as a subsequent command to *find*. When you use *show* on a search made previously in which there was more than one result, Geeknote will ask you to make a choise. +You can output any note in console using command *show* either independently or as a subsequent command to *find*. When you use *show* on a search made previously in which there was more than one result, Geeknote will ask you to make a choice. ##### Synopsis @@ -665,14 +665,14 @@ gnsync --path | ‑‑path | directory to sync | The directory you want to sync with Evernote. It should be the directory with text content files. | | ‑‑mask | unix shell-style wildcards to select the files | You can tell *gnsync* what filetypes to sync. By default *gnsync* tries to open every file in the directory. But you can set the mask like: *.txt, *.log, *.md, *.markdown. | | ‑‑format | in what format to save the note - plain or markdown | Set the engine which to use while files uploading. *gnsync* supports markdown and plain text formats. By default it uses plain text engine. | -| ‑‑notebook | notebook where to save | You can set the notebook which will be syncronized with local directory. But if you won't set this option, *gnsync* will create new notebook with the name of the directory that you want to sync. | +| ‑‑notebook | notebook where to save | You can set the notebook which will be synchronized with local directory. But if you won't set this option, *gnsync* will create new notebook with the name of the directory that you want to sync. | | ‑‑all | | You can specify to synchronize all notebooks already on the server, into subdirectories of the path. Useful with --download to do a backup of all notes. | | ‑‑logpath | path to logfile | *gnsync* can log information about syncing and with that option you can set the logfile. | | ‑‑two-way | | Normally *gnsync* will only upload files. Adding this flag will also make it download any notes not present as files in the notebook directory (after uploading any files not present as notes) | | ‑‑download-only | | Normally *gnsync* will only upload files. Adding this flag will make it download notes, but not upload any files | ##### Description -The application *gnsync* is very useful in system administration, because you can syncronize you local logs, statuses and any other production information with Evernote. +The application *gnsync* is very useful in system administration, because you can synchronize you local logs, statuses and any other production information with Evernote. ##### Examples diff --git a/geeknote/editor.py b/geeknote/editor.py index 8275c66..6f3f5cf 100644 --- a/geeknote/editor.py +++ b/geeknote/editor.py @@ -323,7 +323,7 @@ def edit(self): editor = os.environ.get("EDITOR") if not editor: - # If default editor is not finded, then use nano as a default. + # If default editor is not found, then use nano as a default. if sys.platform == "win32": editor = config.DEF_WIN_EDITOR else: diff --git a/geeknote/geeknote.py b/geeknote/geeknote.py index 7aa6e1c..e7d5185 100755 --- a/geeknote/geeknote.py +++ b/geeknote/geeknote.py @@ -352,7 +352,7 @@ def loadNoteContent(self, note): @EdamException def loadLinkedNoteContent(self, note): if not isinstance(note, object): - raise Excetion( + raise Exception( "Note content must be an " "instance of Note, '%s' given." % type(note) ) diff --git a/tests/test_out.py b/tests/test_out.py index 95b3548..98ef7ac 100755 --- a/tests/test_out.py +++ b/tests/test_out.py @@ -97,11 +97,11 @@ def test_separator_empty_args_success(self): self.assertEqual(sys.stdout.read(), '\n\n') def test_failure_message_success(self): - sav = sys.stderr + save = sys.stderr buf = StringIO() sys.stderr = buf failureMessage('fail') - sys.stderr = sav + sys.stderr = save buf.seek(0) self.assertEqual(buf.read(), 'fail\n')