Skip to content

Conversation

@sourcery-ai
Copy link

@sourcery-ai sourcery-ai bot commented Oct 27, 2023

Branch master refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Review changes via command line

To manually merge these changes, make sure you're on the master branch, then run:

git fetch origin sourcery/master
git merge --ff-only FETCH_HEAD
git reset HEAD^

Help us improve this pull request!

@sourcery-ai sourcery-ai bot requested a review from larsenv October 27, 2023 16:16
return sys.platform

return platforms[sys.platform]
return platforms.get(sys.platform, sys.platform)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function get_platform refactored with the following changes:

Comment on lines -52 to +49
print("| Version " + RIICONNECT24DNSSERVER_VERSION + " |")
print(f"| Version {RIICONNECT24DNSSERVER_VERSION} |")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 52-52 refactored with the following changes:

Comment on lines -135 to +132
if q.qtype == QTYPE.ANY or q.qtype == self._rtype:
if q.qtype in [QTYPE.ANY, self._rtype]:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function Record.try_rr refactored with the following changes:

Comment on lines -142 to +139
if self._rtype in (QTYPE.NS, QTYPE.SOA):
return 60 * 60 * 24
else:
return 300
return 60 * 60 * 24 if self._rtype in (QTYPE.NS, QTYPE.SOA) else 300
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function Record.sensible_ttl refactored with the following changes:

Comment on lines -152 to +146
return '{} {}'.format(QTYPE[self._rtype], self.kwargs)
return f'{QTYPE[self._rtype]} {self.kwargs}'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function Record.__str__ refactored with the following changes:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant