Skip to content

Commit

Permalink
Merge pull request lincolnloop#286 from kianmeng/fix-typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
SmileyChris committed Nov 14, 2022
2 parents 7eb16ae + 7c9ba74 commit b2be4c4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Change log
7.3.1 (1 October 2021)
======================

- Improvements for embeded image.
- Improvements for embedded image.


7.3 (19 August 2021)
Expand Down Expand Up @@ -199,8 +199,8 @@ Change log
3.1 (12 Aug 2013)
=================

* Important fixes for incorrect matches of the alpha-numeric encoding mode.
Previously, the pattern would match if a single line was alpha-numeric only
* Important fixes for incorrect matches of the alphanumeric encoding mode.
Previously, the pattern would match if a single line was alphanumeric only
(even if others wern't). Also, the two characters ``{`` and ``}`` had snuck
in as valid characters. Thanks to Eran Tromer for the report and fix.

Expand Down
2 changes: 1 addition & 1 deletion qrcode/image/styledpil.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class StyledPilImage(qrcode.image.base.BaseImageWithDrawer):
The module_drawer should extend the QRModuleDrawer class and implement the
drawrect_context(self, box, active, context), and probably also the
intitialize function. This will draw an individual "module" or square on
initialize function. This will draw an individual "module" or square on
the QR code.
The color_mask will extend the QRColorMask class and will at very least
Expand Down
12 changes: 6 additions & 6 deletions qrcode/image/styles/colormasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ class QRColorMask:
By the time apply_mask is called, the QRModuleDrawer of the StyledPilImage
will have drawn all of the modules on the canvas (the color of these
modules will be mostly black, although antialiasing may result in
gradiants) In the base class, apply_mask is implemented such that the
gradients) In the base class, apply_mask is implemented such that the
background color will remain, but the foreground pixels will be replaced by
a color determined by a call to get_fg_pixel. There is additional
calculation done to preserve the gradiant artifacts of antialiasing.
calculation done to preserve the gradient artifacts of antialiasing.
All QRColorMask objects should be careful about RGB vs RGBA color spaces.
Expand Down Expand Up @@ -114,7 +114,7 @@ def get_fg_pixel(self, image, x, y):

class RadialGradiantColorMask(QRColorMask):
"""
Fills in the foreground with a radial gradiant from the center to the edge
Fills in the foreground with a radial gradient from the center to the edge
"""

def __init__(
Expand All @@ -137,7 +137,7 @@ def get_fg_pixel(self, image, x, y):

class SquareGradiantColorMask(QRColorMask):
"""
Fills in the foreground with a square gradiant from the center to the edge
Fills in the foreground with a square gradient from the center to the edge
"""

def __init__(
Expand All @@ -160,7 +160,7 @@ def get_fg_pixel(self, image, x, y):

class HorizontalGradiantColorMask(QRColorMask):
"""
Fills in the foreground with a gradiant sweeping from the left to the right
Fills in the foreground with a gradient sweeping from the left to the right
"""

def __init__(
Expand All @@ -178,7 +178,7 @@ def get_fg_pixel(self, image, x, y):

class VerticalGradiantColorMask(QRColorMask):
"""
Fills in the forefround with a gradiant sweeping from the top to the bottom
Fills in the forefround with a gradient sweeping from the top to the bottom
"""

def __init__(
Expand Down
2 changes: 1 addition & 1 deletion qrcode/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def _lost_point_level2(modules, modules_count):
this_row = modules[row]
next_row = modules[row + 1]
# use iter() and next() to skip next four-block. e.g.
# d a f if top-right a != b botton-right,
# d a f if top-right a != b bottom-right,
# c b e then both abcd and abef won't lost any point.
modules_range_iter = iter(modules_range)
for col in modules_range_iter:
Expand Down

0 comments on commit b2be4c4

Please sign in to comment.