comparison hgext/infinitepush/indexapi.py @ 43076:2372284d9457

formatting: blacken the codebase This is using my patch to black (https://github.com/psf/black/pull/826) so we don't un-wrap collection literals. Done with: hg files 'set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**"' | xargs black -S # skip-blame mass-reformatting only # no-check-commit reformats foo_bar functions Differential Revision: https://phab.mercurial-scm.org/D6971
author Augie Fackler <augie@google.com>
date Sun, 06 Oct 2019 09:45:02 -0400
parents 03ff17a4bf53
children 89a2afe31e82
comparison
equal deleted inserted replaced
43075:57875cf423c9 43076:2372284d9457
4 # 4 #
5 # This software may be used and distributed according to the terms of the 5 # This software may be used and distributed according to the terms of the
6 # GNU General Public License version 2 or any later version. 6 # GNU General Public License version 2 or any later version.
7 7
8 from __future__ import absolute_import 8 from __future__ import absolute_import
9
9 10
10 class indexapi(object): 11 class indexapi(object):
11 """Class that manages access to infinitepush index. 12 """Class that manages access to infinitepush index.
12 13
13 This class is a context manager and all write operations (like 14 This class is a context manager and all write operations (like
64 65
65 def saveoptionaljsonmetadata(self, node, jsonmetadata): 66 def saveoptionaljsonmetadata(self, node, jsonmetadata):
66 """Saves optional metadata for a given node""" 67 """Saves optional metadata for a given node"""
67 raise NotImplementedError() 68 raise NotImplementedError()
68 69
70
69 class indexexception(Exception): 71 class indexexception(Exception):
70 pass 72 pass