mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
stylefixes
This commit is contained in:
parent
d1232947c6
commit
eadb7203ee
7 changed files with 9 additions and 2 deletions
|
|
@ -60,8 +60,8 @@ texinfo_documents = [
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
def github_issue_role(name, rawtext, text, lineno, inliner, options={},
|
def github_issue_role(name, rawtext, text, lineno, inliner,
|
||||||
content=()):
|
options={}, content=()): # noqa: B006
|
||||||
try:
|
try:
|
||||||
issue_num = int(text)
|
issue_num = int(text)
|
||||||
if issue_num <= 0:
|
if issue_num <= 0:
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ if [ "$BUILD_PRS" = "true" ] || [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
|
||||||
fi
|
fi
|
||||||
""".strip().format(x.strip())
|
""".strip().format(x.strip())
|
||||||
|
|
||||||
|
|
||||||
cfg = {}
|
cfg = {}
|
||||||
|
|
||||||
cfg['sudo'] = True
|
cfg['sudo'] = True
|
||||||
|
|
|
||||||
1
setup.py
1
setup.py
|
|
@ -52,6 +52,7 @@ class PrintRequirements(Command):
|
||||||
for requirement in requirements:
|
for requirement in requirements:
|
||||||
print(requirement.replace(">", "=").replace(" ", ""))
|
print(requirement.replace(">", "=").replace(" ", ""))
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
# General metadata
|
# General metadata
|
||||||
name='vdirsyncer',
|
name='vdirsyncer',
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ def _check_python_version(): # pragma: no cover
|
||||||
print('vdirsyncer requires Python 3.')
|
print('vdirsyncer requires Python 3.')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
_check_python_version()
|
_check_python_version()
|
||||||
del _check_python_version
|
del _check_python_version
|
||||||
|
|
||||||
|
|
@ -45,5 +46,6 @@ def _detect_faulty_requests(): # pragma: no cover
|
||||||
print(text.format(e=str(e), d=DOCS_HOME), file=sys.stderr)
|
print(text.format(e=str(e), d=DOCS_HOME), file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
_detect_faulty_requests()
|
_detect_faulty_requests()
|
||||||
del _detect_faulty_requests
|
del _detect_faulty_requests
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ def app(ctx, config):
|
||||||
from .config import load_config
|
from .config import load_config
|
||||||
ctx.config = load_config(config)
|
ctx.config = load_config(config)
|
||||||
|
|
||||||
|
|
||||||
main = app
|
main = app
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ def _generate_path_reserved_chars():
|
||||||
yield x.upper()
|
yield x.upper()
|
||||||
yield x.lower()
|
yield x.lower()
|
||||||
|
|
||||||
|
|
||||||
_path_reserved_chars = frozenset(_generate_path_reserved_chars())
|
_path_reserved_chars = frozenset(_generate_path_reserved_chars())
|
||||||
del _generate_path_reserved_chars
|
del _generate_path_reserved_chars
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -154,6 +154,7 @@ def split_collection(text):
|
||||||
item.subcomponents.extend(inline)
|
item.subcomponents.extend(inline)
|
||||||
yield u'\r\n'.join(item.dump_lines())
|
yield u'\r\n'.join(item.dump_lines())
|
||||||
|
|
||||||
|
|
||||||
_default_join_wrappers = {
|
_default_join_wrappers = {
|
||||||
u'VCALENDAR': u'VCALENDAR',
|
u'VCALENDAR': u'VCALENDAR',
|
||||||
u'VEVENT': u'VCALENDAR',
|
u'VEVENT': u'VCALENDAR',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue