snose

Check-in [44025db081]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Typo, should have been file not filename
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk | master
Files: files | file ages | folders
SHA3-256: 44025db081d90bd66fda3122712bd18cdd5274838838dcc7ba832bca6928430f
User & Date: atomicules 2019-03-10 01:51:56
Context
2019-03-10
01:51
Typo, should have been file not filename Leaf check-in: 44025db081 user: atomicules tags: master, trunk
2018-11-17
10:59
Break many more common bits out into methods:

- snitems (iterating through items)
- snwrite (writing a file from disk)
- snread (reading a file from disk)
- snremote (getting a remote note from Simplenote)+def snitems(snose): check-in: 3ee3b5e7a8 user: atomicules tags: master, trunk

Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to snose.py.

34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
    snclient = simplenote.Simplenote(options.username, options.password)
    if options.snort:
        if options.file is None:
            print('--file required')
            sys.exit()
        snort(snclient, options.file)
    elif options.sniff:
        if options.filename is None:
            print('--file required')
            sys.exit()
        sniff(snclient, options.sniff, options.file)
    elif options.sneeze:
        sneeze(snclient, options.sneeze, options.file)
    elif options.blow:
        blow(snclient, options.blow)







|







34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
    snclient = simplenote.Simplenote(options.username, options.password)
    if options.snort:
        if options.file is None:
            print('--file required')
            sys.exit()
        snort(snclient, options.file)
    elif options.sniff:
        if options.file is None:
            print('--file required')
            sys.exit()
        sniff(snclient, options.sniff, options.file)
    elif options.sneeze:
        sneeze(snclient, options.sneeze, options.file)
    elif options.blow:
        blow(snclient, options.blow)