Skip to content

Commit

Permalink
Fix black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
markpeek committed Oct 9, 2021
1 parent 24c2cf9 commit b1e9408
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 44 deletions.
11 changes: 3 additions & 8 deletions examples/Mediapackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
t = Template()
t.set_version()

t.add_resource(
Channel(
"MediaPackage",
Id="MediaPackageChannel"
)
)
t.add_resource(Channel("MediaPackage", Id="MediaPackageChannel"))

t.add_resource(
OriginEndpoint(
Expand All @@ -19,14 +14,14 @@
HlsPackage=OriginEndpointHlsPackage(
ProgramDateTimeIntervalSeconds=0,
PlaylistWindowSeconds=60,
PlaylistType='NONE',
PlaylistType="NONE",
IncludeIframeOnlyStream=False,
SegmentDurationSeconds=6,
UseAudioRenditionGroup=False,
),
Id="MediaPackageOriginEndpoint",
ManifestName="MediaPackageOriginEndpoint",
Origination='ALLOW',
Origination="ALLOW",
)
)

Expand Down
7 changes: 6 additions & 1 deletion troposphere/firehose.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@


def processor_type_validator(x):
valid_types = ["Lambda", "MetadataExtraction", "RecordDeAggregation", "AppendDelimiterToRecord"]
valid_types = [
"Lambda",
"MetadataExtraction",
"RecordDeAggregation",
"AppendDelimiterToRecord",
]
if x not in valid_types:
raise ValueError("Type must be one of: %s" % ", ".join(valid_types))
return x
Expand Down
70 changes: 35 additions & 35 deletions troposphere/mediapackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ class CmafEncryption(AWSProperty):

class OriginEndpointCmafEncryption(AWSProperty):
props = {
"ConstantInitializationVector" : (str, False),
"KeyRotationIntervalSeconds" : (integer, False),
"ConstantInitializationVector": (str, False),
"KeyRotationIntervalSeconds": (integer, False),
"SpekeKeyProvider": (SpekeKeyProvider, True),
}

Expand All @@ -102,16 +102,16 @@ class HlsManifest(AWSProperty):

class OriginEndpointHlsManifest(AWSProperty):
props = {
"AdMarkers" : (str, False),
"AdsOnDeliveryRestrictions" : (str, False),
"AdTriggers" : ([str], False),
"Id" : (str, True),
"IncludeIframeOnlyStream" : (boolean, False),
"ManifestName" : (str, False),
"PlaylistType" : (str, False),
"PlaylistWindowSeconds" : (integer, False),
"ProgramDateTimeIntervalSeconds" : (integer, False),
"Url" : (str, False)
"AdMarkers": (str, False),
"AdsOnDeliveryRestrictions": (str, False),
"AdTriggers": ([str], False),
"Id": (str, True),
"IncludeIframeOnlyStream": (boolean, False),
"ManifestName": (str, False),
"PlaylistType": (str, False),
"PlaylistWindowSeconds": (integer, False),
"ProgramDateTimeIntervalSeconds": (integer, False),
"Url": (str, False),
}


Expand Down Expand Up @@ -208,9 +208,9 @@ class MssPackage(AWSProperty):
class OriginEndpointMssPackage(AWSProperty):
props = {
"Encryption": (MssEncryption, False),
"ManifestWindowSeconds" : (integer, False),
"SegmentDurationSeconds" : (integer, False),
"StreamSelection" : (StreamSelection, False),
"ManifestWindowSeconds": (integer, False),
"SegmentDurationSeconds": (integer, False),
"StreamSelection": (StreamSelection, False),
}


Expand All @@ -232,31 +232,31 @@ class OriginEndpointHlsPackage(AWSProperty):

class OriginEndpointDashPackage(AWSProperty):
props = {
"AdsOnDeliveryRestrictions" : (str, False),
"AdTriggers" : ([str], False),
"Encryption" : (OriginEndpointDashEncryption, False),
"ManifestLayout" : (str, False),
"ManifestWindowSeconds" : (integer, False),
"MinBufferTimeSeconds" : (integer, False),
"MinUpdatePeriodSeconds" : (integer, False),
"PeriodTriggers" : ([str], False),
"Profile" : (integer, False),
"SegmentDurationSeconds" : (integer, False),
"SegmentTemplateFormat" : (str, False),
"StreamSelection" : (StreamSelection, False),
"SuggestedPresentationDelaySeconds" : (integer, False),
"UtcTiming" : (str, False),
"UtcTimingUri" : (str, False)
"AdsOnDeliveryRestrictions": (str, False),
"AdTriggers": ([str], False),
"Encryption": (OriginEndpointDashEncryption, False),
"ManifestLayout": (str, False),
"ManifestWindowSeconds": (integer, False),
"MinBufferTimeSeconds": (integer, False),
"MinUpdatePeriodSeconds": (integer, False),
"PeriodTriggers": ([str], False),
"Profile": (integer, False),
"SegmentDurationSeconds": (integer, False),
"SegmentTemplateFormat": (str, False),
"StreamSelection": (StreamSelection, False),
"SuggestedPresentationDelaySeconds": (integer, False),
"UtcTiming": (str, False),
"UtcTimingUri": (str, False),
}


class OriginEndpointCmafPackage(AWSProperty):
props = {
"Encryption" : (OriginEndpointCmafEncryption, False),
"HlsManifests" : ([OriginEndpointHlsManifest], False),
"SegmentDurationSeconds" : (integer, False),
"SegmentPrefix" : (str, False),
"StreamSelection" : (StreamSelection, False),
"Encryption": (OriginEndpointCmafEncryption, False),
"HlsManifests": ([OriginEndpointHlsManifest], False),
"SegmentDurationSeconds": (integer, False),
"SegmentPrefix": (str, False),
"StreamSelection": (StreamSelection, False),
}


Expand Down

0 comments on commit b1e9408

Please sign in to comment.