Skip to content

Commit 10cd13c

Browse files
Andreas ReichelDaniel Wagner
Andreas Reichel
authored and
Daniel Wagner
committed
Correct grammar, spelling and copyright year in files
Signed-off-by: Andreas Reichel <[email protected]>
1 parent 249a052 commit 10cd13c

18 files changed

+85
-83
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
kas - setup tool for bitbake based projects
22

3-
Copyright (c) Siemens AG, 2017
3+
Copyright (c) Siemens AG, 2017-2018
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
# General information about the project.
6262
project = 'kas'
63-
copyright = 'Siemens AG, 2017'
63+
copyright = 'Siemens AG, 2017-2018'
6464
author = 'Daniel Wagner, Jan Kiszka, Claudius Heine'
6565

6666
# The version info for the project you're documenting, acts as replacement for

kas/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# kas - setup tool for bitbake based projects
22
#
3-
# Copyright (c) Siemens AG, 2017
3+
# Copyright (c) Siemens AG, 2017-2018
44
#
55
# Permission is hereby granted, free of charge, to any person obtaining a copy
66
# of this software and associated documentation files (the "Software"), to deal
@@ -28,4 +28,4 @@
2828
from .configschema import CONFIGSCHEMA
2929

3030
__license__ = 'MIT'
31-
__copyright__ = 'Copyright (c) Siemens AG, 2017'
31+
__copyright__ = 'Copyright (c) Siemens AG, 2017-2018'

kas/__main__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# kas - setup tool for bitbake based projects
44
#
5-
# Copyright (c) Siemens AG, 2017
5+
# Copyright (c) Siemens AG, 2017-2018
66
#
77
# Permission is hereby granted, free of charge, to any person obtaining a copy
88
# of this software and associated documentation files (the "Software"), to deal
@@ -28,6 +28,6 @@
2828
from .kas import main
2929

3030
__license__ = 'MIT'
31-
__copyright__ = 'Copyright (c) Siemens AG, 2017'
31+
__copyright__ = 'Copyright (c) Siemens AG, 2017-2018'
3232

3333
main()

kas/__version__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# kas - setup tool for bitbake based projects
22
#
3-
# Copyright (c) Siemens AG, 2017
3+
# Copyright (c) Siemens AG, 2017-2018
44
#
55
# Permission is hereby granted, free of charge, to any person obtaining a copy
66
# of this software and associated documentation files (the "Software"), to deal
@@ -23,7 +23,7 @@
2323
This module contains the version of kas.
2424
"""
2525
__license__ = 'MIT'
26-
__copyright__ = 'Copyright (c) Siemens AG, 2017'
26+
__copyright__ = 'Copyright (c) Siemens AG, 2017-2018'
2727

2828
__version__ = '0.18.0'
2929

kas/build.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# kas - setup tool for bitbake based projects
22
#
3-
# Copyright (c) Siemens AG, 2017
3+
# Copyright (c) Siemens AG, 2017-2018
44
#
55
# Permission is hereby granted, free of charge, to any person obtaining a copy
66
# of this software and associated documentation files (the "Software"), to deal
@@ -37,7 +37,7 @@
3737
SetupReposStep)
3838

3939
__license__ = 'MIT'
40-
__copyright__ = 'Copyright (c) Siemens AG, 2017'
40+
__copyright__ = 'Copyright (c) Siemens AG, 2017-2018'
4141

4242

4343
@kasplugin
@@ -115,7 +115,7 @@ def run(self, args):
115115

116116
class BuildCommand(Command):
117117
"""
118-
Implement the bitbake build step.
118+
Implements the bitbake build step.
119119
"""
120120

121121
def __init__(self, task):

kas/config.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# kas - setup tool for bitbake based projects
22
#
3-
# Copyright (c) Siemens AG, 2017
3+
# Copyright (c) Siemens AG, 2017-2018
44
#
55
# Permission is hereby granted, free of charge, to any person obtaining a copy
66
# of this software and associated documentation files (the "Software"), to deal
@@ -28,7 +28,7 @@
2828
from .includehandler import IncludeHandler, IncludeException
2929

3030
__license__ = 'MIT'
31-
__copyright__ = 'Copyright (c) Siemens AG, 2017'
31+
__copyright__ = 'Copyright (c) Siemens AG, 2017-2018'
3232

3333

3434
class Config:
@@ -83,8 +83,8 @@ def get_repos(self):
8383
def _get_repo_dict(self):
8484
"""
8585
Returns a dictionary containing the repositories with
86-
their name (as it is defined in the config file) as key
87-
and the `Repo` instances as value.
86+
their names (as it is defined in the config file) as keys
87+
and the `Repo` instances as values.
8888
"""
8989
repo_config_dict = self._config.get('repos', {})
9090
repo_dict = {}
@@ -113,7 +113,7 @@ def get_bitbake_targets(self):
113113

114114
def get_bitbake_task(self):
115115
"""
116-
Return the bitbake task
116+
Returns the bitbake task
117117
"""
118118
return os.environ.get('KAS_TASK',
119119
self._config.get('task', 'build'))
@@ -156,7 +156,7 @@ def get_distro(self):
156156
def get_environment(self):
157157
"""
158158
Returns the configured environment variables from the configuration
159-
file, with possible overwritten values from the environment.
159+
file with possible overwritten values from the environment.
160160
"""
161161
env = self._config.get('env', {})
162162
return {var: os.environ.get(var, env[var]) for var in env}

kas/configschema.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# kas - setup tool for bitbake based projects
22
#
3-
# Copyright (c) Siemens AG, 2017
3+
# Copyright (c) Siemens AG, 2017-2018
44
#
55
# Permission is hereby granted, free of charge, to any person obtaining a copy
66
# of this software and associated documentation files (the 'Software'), to deal
@@ -24,7 +24,7 @@
2424
This module contains the schema of the configuration file.
2525
'''
2626
__license__ = 'MIT'
27-
__copyright__ = 'Copyright (c) Siemens AG, 2017'
27+
__copyright__ = 'Copyright (c) Siemens AG, 2017-2018'
2828

2929
CONFIGSCHEMA = {
3030
'type': 'object',

kas/context.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def get_distro_id_base():
5353

5454
def create_global_context():
5555
"""
56-
Create global context as singleton.
56+
Creates global context as singleton.
5757
"""
5858
# pylint: disable=global-statement
5959
global __context__
@@ -63,7 +63,7 @@ def create_global_context():
6363

6464
def get_context():
6565
"""
66-
Return singleton global context.
66+
Returns singleton global context.
6767
"""
6868
return __context__
6969

@@ -82,7 +82,7 @@ def __init__(self):
8282

8383
def setup_initial_environ(self):
8484
"""
85-
Sets the environment variables for process that are
85+
Sets the environment variables for processes that are
8686
started by kas.
8787
"""
8888
self.environ = {}
@@ -110,7 +110,7 @@ def setup_initial_environ(self):
110110
@property
111111
def build_dir(self):
112112
"""
113-
The path of the build directory
113+
The path to the build directory
114114
"""
115115
return os.path.join(self.__kas_work_dir, 'build')
116116

kas/includehandler.py

+17-16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# kas - setup tool for bitbake based projects
22
#
3-
# Copyright (c) Siemens AG, 2017
3+
# Copyright (c) Siemens AG, 2017-2018
44
#
55
# Permission is hereby granted, free of charge, to any person obtaining a copy
66
# of this software and associated documentation files (the "Software"), to deal
@@ -36,12 +36,12 @@
3636
from . import CONFIGSCHEMA
3737

3838
__license__ = 'MIT'
39-
__copyright__ = 'Copyright (c) Siemens AG, 2017'
39+
__copyright__ = 'Copyright (c) Siemens AG, 2017-2018'
4040

4141

4242
class LoadConfigException(Exception):
4343
"""
44-
Class for exceptions that appear while loading the configuration file.
44+
Class for exceptions that appear while loading a configuration file.
4545
"""
4646
def __init__(self, message, filename):
4747
super().__init__('{}: {}'.format(message, filename))
@@ -73,7 +73,7 @@ def load_config(filename):
7373
logging.error('Config file validation Error:\n%s', error)
7474

7575
if validation_error:
76-
raise LoadConfigException('Errors occured while validating the '
76+
raise LoadConfigException('Error(s) occured while validating the '
7777
'config file', filename)
7878

7979
try:
@@ -108,16 +108,17 @@ class IncludeHandler:
108108
contain a dictionary as the base type with and 'includes'
109109
key containing a list of includes.
110110
111-
The includes can be specified in two ways, as a string
111+
The includes can be specified in two ways: as a string
112112
containing the relative path from the current file or as a
113-
dictionary. The dictionary should have a 'file' key, containing
113+
dictionary. The dictionary should have a 'file' key containing
114114
the relative path to the include file and optionally a 'repo'
115-
key, containing the key of the repository. If the 'repo' key is
116-
missing the value of the 'file' key is treated the same as if
115+
key containing the key of the repository. If the 'repo' key is
116+
missing the value of the 'file' key, it is treated the same as if
117117
just a string was defined, meaning the path is relative to the
118-
current config file otherwise its relative to the repository path.
118+
current config file. Otherwise it is interpreted relative to
119+
the repository path.
119120
120-
The includes are read and merged depth first from top to buttom.
121+
The includes are read and merged from the deepest level upwards.
121122
"""
122123

123124
def __init__(self, top_files):
@@ -126,7 +127,7 @@ def __init__(self, top_files):
126127
def get_config(self, repos=None):
127128
"""
128129
Parameters:
129-
repos -- A dictionary that maps repo name to directory path
130+
repos -- A dictionary that maps repo names to directory paths
130131
131132
Returns:
132133
(config, repos)
@@ -139,7 +140,7 @@ def get_config(self, repos=None):
139140

140141
def _internal_include_handler(filename):
141142
"""
142-
Recursively load include files and find missing repos.
143+
Recursively loads include files and finds missing repos.
143144
144145
Includes are done in the following way:
145146
@@ -161,7 +162,7 @@ def _internal_include_handler(filename):
161162
'include-repo2.yml', 'include-repo2.yml', 'topfile.yml']
162163
On conflict the latter includes overwrite previous ones and
163164
the current file overwrites every include. (evaluation depth first
164-
and from top to buttom)
165+
and from top to bottom)
165166
"""
166167
# pylint: disable=too-many-arguments
167168

@@ -219,9 +220,9 @@ def _internal_dict_merge(dest, upd, recursive_merge=True):
219220
"""
220221
Merges upd recursively into a copy of dest as OrderedDict
221222
222-
If recursive_merge=False, will use the classic dict.update,
223-
or fall back on a manual merge (helpful for non-dict types
224-
like FunctionWrapper)
223+
If recursive_merge is False, it will use the classic dict.update,
224+
otherwise it will fall back on a manual merge (helpful for non-dict
225+
types like FunctionWrapper)
225226
"""
226227
if (not isinstance(dest, Mapping)) \
227228
or (not isinstance(upd, Mapping)):

kas/kas.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# kas - setup tool for bitbake based projects
44
#
5-
# Copyright (c) Siemens AG, 2017
5+
# Copyright (c) Siemens AG, 2017-2018
66
#
77
# Permission is hereby granted, free of charge, to any person obtaining a copy
88
# of this software and associated documentation files (the "Software"), to deal
@@ -53,7 +53,7 @@
5353
from . import shell
5454

5555
__license__ = 'MIT'
56-
__copyright__ = 'Copyright (c) Siemens AG, 2017'
56+
__copyright__ = 'Copyright (c) Siemens AG, 2017-2018'
5757

5858

5959
def create_logger():
@@ -90,7 +90,7 @@ def interruption():
9090

9191
def _atexit_handler():
9292
"""
93-
Wait for completion of the event loop
93+
Waits for completion of the event loop
9494
"""
9595
loop = asyncio.get_event_loop()
9696
pending = asyncio.Task.all_tasks()
@@ -100,7 +100,7 @@ def _atexit_handler():
100100

101101
def kas_get_argparser():
102102
"""
103-
Creates a argparser for kas with all plugins.
103+
Creates an argparser for kas with all plugins.
104104
"""
105105
parser = argparse.ArgumentParser(description='kas - setup tool for '
106106
'bitbake based project')
@@ -126,7 +126,7 @@ def kas_get_argparser():
126126

127127
def kas(argv):
128128
"""
129-
The main entry point of kas.
129+
The actual main entry point of kas.
130130
"""
131131
create_logger()
132132

0 commit comments

Comments
 (0)