Skip to content

Instantly share code, notes, and snippets.

@richm
Last active April 7, 2017 15:29
Show Gist options
  • Save richm/3e97d48c6bb8f813fc34cf55a951cd26 to your computer and use it in GitHub Desktop.
Save richm/3e97d48c6bb8f813fc34cf55a951cd26 to your computer and use it in GitHub Desktop.
Patch watches/cli.py with iteritems
(Dry run: don't modify files)
WARNING: [print] watches/cli.py: -l Single line output (no pretty-print JSON formatting).
WARNING: [print] watches/cli.py: # print duration, interval, startsec, actualsec, endsec
Patch watches/commands/base.py with print
WARNING: [print] watches/commands/base.py: print 'Supplied options:', dumps(self.options, indent=2, sort_keys=True)
WARNING: [print] watches/commands/base.py: print dumps(data, default=lambda x:str(x))
WARNING: [print] watches/commands/base.py: print dumps(data, indent=2, sort_keys=False, default=lambda x:str(x))
WARNING: watches/util/ESClientProducer.py: Failed to find the best place to add
'import six': put it at the end. Use --app and --third-party options.
Patch watches/util/ESClientProducer.py with basestring
Warnings:
WARNING: [print] watches/cli.py: -l Single line output (no pretty-print JSON formatting).
WARNING: [print] watches/cli.py: # print duration, interval, startsec, actualsec, endsec
WARNING: [print] watches/commands/base.py: print 'Supplied options:', dumps(self.options, indent=2, sort_keys=True)
WARNING: [print] watches/commands/base.py: print dumps(data, default=lambda x:str(x))
WARNING: [print] watches/commands/base.py: print dumps(data, indent=2, sort_keys=False, default=lambda x:str(x))
WARNING: watches/util/ESClientProducer.py: Failed to find the best place to add
'import six': put it at the end. Use --app and --third-party options.
Now retry with --write option to really modify files inplace
Scanned 13 files
Applied operations (3): basestring, iteritems, print
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment