mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Implement black formatting
This commit is contained in:
@@ -2,8 +2,12 @@
|
||||
#
|
||||
#
|
||||
|
||||
from __future__ import absolute_import, division, print_function, \
|
||||
unicode_literals
|
||||
from __future__ import (
|
||||
absolute_import,
|
||||
division,
|
||||
print_function,
|
||||
unicode_literals,
|
||||
)
|
||||
|
||||
|
||||
class BaseSource(object):
|
||||
@@ -15,14 +19,17 @@ class BaseSource(object):
|
||||
def __init__(self, id):
|
||||
self.id = id
|
||||
if not getattr(self, 'log', False):
|
||||
raise NotImplementedError('Abstract base class, log property '
|
||||
'missing')
|
||||
raise NotImplementedError(
|
||||
'Abstract base class, log property ' 'missing'
|
||||
)
|
||||
if not hasattr(self, 'SUPPORTS_GEO'):
|
||||
raise NotImplementedError('Abstract base class, SUPPORTS_GEO '
|
||||
'property missing')
|
||||
raise NotImplementedError(
|
||||
'Abstract base class, SUPPORTS_GEO ' 'property missing'
|
||||
)
|
||||
if not hasattr(self, 'SUPPORTS'):
|
||||
raise NotImplementedError('Abstract base class, SUPPORTS '
|
||||
'property missing')
|
||||
raise NotImplementedError(
|
||||
'Abstract base class, SUPPORTS ' 'property missing'
|
||||
)
|
||||
|
||||
@property
|
||||
def SUPPORTS_DYNAMIC(self):
|
||||
@@ -43,8 +50,9 @@ class BaseSource(object):
|
||||
When target is True (loading current state) this method should return
|
||||
True if the zone exists or False if it does not.
|
||||
'''
|
||||
raise NotImplementedError('Abstract base class, populate method '
|
||||
'missing')
|
||||
raise NotImplementedError(
|
||||
'Abstract base class, populate method ' 'missing'
|
||||
)
|
||||
|
||||
def supports(self, record):
|
||||
return record._type in self.SUPPORTS
|
||||
|
||||
Reference in New Issue
Block a user