You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGES.rst
+31-7Lines changed: 31 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,43 @@
2
2
Change log
3
3
==========
4
4
5
+
Deprecation Warnings
6
+
====================
7
+
8
+
Removed in v9.0:
9
+
----------------
10
+
11
+
- Importing a PIL drawer from ``qrcode.image.styles.moduledrawers`` has been deprecated.
12
+
Update your code to import directly from the ``pil`` module instead:
13
+
14
+
.. code-block:: python
15
+
16
+
from qrcode.image.styles.moduledrawers import SquareModuleDrawer # Old
17
+
from qrcode.image.styles.moduledrawers.pil import SquareModuleDrawer # New
18
+
19
+
- Calling ``QRCode.make_image`` or ``StyledPilImage`` with the arguments ``embeded_image``
20
+
or ``embeded_image_path`` have been deprecated due to typographical errors. Update
21
+
your code to use the correct arguments ``embedded_image`` and ``embededd_image_path``:
22
+
23
+
.. code-block:: python
24
+
25
+
qr = QRCode()
26
+
qr.make_image(embeded_image=..., embeded_image_path=...) # Old
27
+
qr.make_image(embedded_image=..., embedded_image_path=...) # New
28
+
29
+
StyledPilImage(embeded_image=..., embeded_image_path=...) # Old
30
+
StyledPilImage(embedded_image=..., embedded_image_path=...) # New
31
+
5
32
WIP
6
33
===
7
34
8
-
- Added ``GappedCircleModuleDrawer`` (PIL) to render QR code modules as non-contiguous circles. (BenwestGate in `#373`_)
9
-
- Removed the hardcoded 'id' argument from SVG elements. The fixed element ID caused conflicts when embedding multiple QR codes in a single document. (m000 in `#385`_)
35
+
- **Added** ``GappedCircleModuleDrawer`` (PIL) to render QR code modules as non-contiguous circles. (BenwestGate in `#373`_)
36
+
- **Added** ability to execute as a Python module: ``python -m qrcode --output qrcode.png "hello world"`` (stefansjs in `#400`_)
37
+
- **Removed** the hardcoded 'id' argument from SVG elements. The fixed element ID caused conflicts when embedding multiple QR codes in a single document. (m000 in `#385`_)
10
38
- Improved test coveraged (akx in `#315`_)
11
39
- Fixed typos in code that used ``embeded`` instead of ``embedded``. For backwards compatibility, the misspelled parameter names are still accepted but now emit deprecation warnings. These deprecated parameter names will be removed in v9.0. (benjnicholls in `#349`_)
12
40
- Migrate pyproject.toml to PEP 621-compliant [project] metadata format. (hroncok in `#399`_)
13
-
- Allow execution as a Python module. (stefansjs in `#400`_)
0 commit comments