Clean up copyright notices and version screen (#1553)

* update copyright symbols to unicode

* clean up version screen/copyright notice

* small change to make commands more similar

* update imports to appease isort

* fix test

* update one more file merged since PR was open
This commit is contained in:
Jonathan Wren 2022-08-21 14:17:35 -07:00 committed by GitHub
parent 5dcc721f15
commit 4eb9c9fdec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
102 changed files with 116 additions and 109 deletions

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import datetime

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import base64

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import datetime

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import codecs

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import datetime

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
try:

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import sys

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import argparse

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import logging

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import re

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
"""
@ -26,27 +26,34 @@ from jrnl.prompt import create_password
def preconfig_diagnostic(_):
from jrnl import __title__
from jrnl import __version__
print(
f"jrnl: {__version__}\n"
f"{__title__}: {__version__}\n"
f"Python: {sys.version}\n"
f"OS: {platform.system()} {platform.release()}"
)
def preconfig_version(_):
import textwrap
from jrnl import __title__
from jrnl import __version__
version_str = f"""{__title__} version {__version__}
output = f"""
{__title__} {__version__}
Copyright (C) 2012-2022 jrnl contributors
Copyright © 2012-2022 jrnl contributors
This is free software, and you are welcome to redistribute it under certain
conditions; for details, see: https://www.gnu.org/licenses/gpl-3.0.html"""
This is free software, and you are welcome to redistribute it under certain
conditions; for details, see: https://www.gnu.org/licenses/gpl-3.0.html
"""
print(version_str)
output = textwrap.dedent(output).strip()
print(output)
def postconfig_list(config, **kwargs):

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import logging

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import logging

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
from jrnl.messages import Message

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import glob

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import logging

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
from typing import Mapping

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
from enum import Enum

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
from enum import Enum

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
from jrnl.messages.Message import Message

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import shlex

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import textwrap

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
from argparse import Namespace

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import os.path

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
from jrnl.plugins.dates_exporter import DatesExporter

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
from collections import Counter

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import logging

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import sys

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import json

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import os

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
from jrnl.plugins.text_exporter import TextExporter

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import errno

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
from xml.dom import minidom

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import os

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
from jrnl.messages import Message

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import datetime

View file

@ -1,4 +1,4 @@
# Copyright (C) 2012-2022 jrnl contributors
# Copyright © 2012-2022 jrnl contributors
# License: https://www.gnu.org/licenses/gpl-3.0.html
import os