Skip to content

Commit 60f4323

Browse files
committed
Language edit updates
1 parent 1b7d5bb commit 60f4323

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

python-import/hello_gui/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ def __init__(self, *args, **kwargs):
1414
super().__init__(*args, **kwargs)
1515
self.wm_title("Hello")
1616

17-
# Read image, store a reference to it and set it as an icon
17+
# Read image, store a reference to it, and set it as an icon
1818
with resources.path("hello_gui.gui_resources", "logo.png") as path:
1919
self._icon = tk.PhotoImage(file=path)
2020
self.iconphoto(True, self._icon)
2121

22-
# Read image, create a button and store a reference to the image
22+
# Read image, create a button, and store a reference to the image
2323
with resources.path("hello_gui.gui_resources", "hand.png") as path:
2424
hand = tk.PhotoImage(file=path)
2525
button = ttk.Button(

python-import/plugins.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
from collections import namedtuple
66
from importlib import resources
77

8-
# Simple structure for storing information about one plug-in
8+
# Basic structure for storing information about one plugin
99
Plugin = namedtuple("Plugin", ("name", "func"))
1010

11-
# Dictionary with information about all registered plug-ins
11+
# Dictionary with information about all registered plugins
1212
_PLUGINS = {}
1313

1414

python-import/population.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def __init__(self):
1515
@property
1616
def data(self):
1717
"""Read data from disk"""
18-
if self._data: # Data have already been read, return it directly
18+
if self._data: # Data has already been read, return it directly
1919
return self._data
2020

2121
# Read data and store it in self._data
@@ -52,5 +52,5 @@ def order_countries(self, year):
5252
return sorted(countries, key=lambda c: countries[c], reverse=True)
5353

5454

55-
# Instantiate the Singleton
55+
# Instantiate the singleton
5656
data = _Population()

python-import/population_quiz/population_quiz.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ def run_quiz(population, num_questions, num_countries):
5555
correct = max(countries, key=lambda k: population[k])
5656
if guess == correct:
5757
num_correct += 1
58-
print(f"Yes, {guess} is most populus ({population[guess]:,})")
58+
print(f"Yes, {guess} is most populous ({population[guess]:,})")
5959
else:
6060
print(
61-
f"No, {correct} ({population[correct]:,}) is more populus "
61+
f"No, {correct} ({population[correct]:,}) is more populous "
6262
f"than {guess} ({population[guess]:,})"
6363
)
6464

python-import/structure/structure/structure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def main():
1616
print("Need one argument: the root of the original file tree")
1717
raise SystemExit()
1818

19-
# Recreate the file structure
19+
# Re-create the file structure
2020
new_root = files.unique_path(pathlib.Path.cwd(), "{:03d}")
2121
for path in root.rglob("*"):
2222
if path.is_file() and new_root not in path.parents:

0 commit comments

Comments
 (0)