Skip to content

Commit cfb12df

Browse files
author
uzair-folio3
committed
Update condition.py
1 parent 5f793a3 commit cfb12df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

optimizely/helpers/condition.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -505,23 +505,23 @@ def split_semantic_version(self, target):
505505
self.logger.warning(Errors.INVALID_ATTRIBUTE_FORMAT)
506506
return None
507507

508-
""" check for pre release e.g. 1.0.0-alpha where 'alpha' is a pre release otherwise
509-
check for build e.g. 1.0.0+001 where 001 is a build metadata"""
508+
# check for pre release e.g. 1.0.0-alpha where 'alpha' is a pre release
509+
# otherwise check for build e.g. 1.0.0+001 where 001 is a build metadata"""
510510

511511
if self.is_pre_release(target):
512512
target_parts = target.split(SemverType.IS_PRE_RELEASE)
513513
elif self.is_build(target):
514514
target_parts = target.split(SemverType.IS_BUILD)
515515

516-
""" validate target version into prefix and suffix """
516+
# validate target version into prefix and suffix
517517
if target_parts:
518518
if len(target_parts) < 1:
519519
self.logger.warning(Errors.INVALID_ATTRIBUTE_FORMAT)
520520
return None
521521
target_prefix = str(target_parts[0])
522522
target_suffix = target_parts[1:]
523523

524-
""" validate dot counts in a target version """
524+
# validate dot counts in a target version
525525
dot_count = target_prefix.count(".")
526526
if dot_count > 2:
527527
self.logger.warning(Errors.INVALID_ATTRIBUTE_FORMAT)

0 commit comments

Comments
 (0)