Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: patchwright/python-barcode
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: WhyNotHugo/python-barcode
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 12 commits
  • 13 files changed
  • 5 contributors

Commits on Jun 25, 2026

  1. fix: ISSN checksum returns 11 instead of 0 when weighted sum is divis…

    …ible by 11
    
    The `_calculate_checksum` method in `InternationalStandardSerialNumber`
    was missing a final `% 11`, causing it to return 11 (an invalid
    two-digit value) instead of 0 when the weighted digit sum happened to
    be exactly divisible by 11.
    
    Fixes WhyNotHugo#238.
    binggao1230 committed Jun 25, 2026
    Configuration menu
    Copy the full SHA
    bc97480 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2026

  1. Stop dropping a leading "99" pair from Code128 barcodes

    In charset C the digit pair "99" encodes to the code number 99, which
    is also the TO_C charset-switch marker. Code128._try_to_optimize folded
    away a leading switch code, so a barcode whose data began with "99" had
    that pair silently dropped: Code128("9912345678").encoded produced
    [105, 12, 34, 56, 78], decoding to "12345678".
    
    Restrict the START-code folding to a genuine START_C followed by a
    switch to charset A or B, so the data value 99 is preserved while the
    legitimate optimization (e.g. "Wikipedia" starting in charset B) still
    applies. Fixes WhyNotHugo#251.
    binggao1230 committed Jul 6, 2026
    Configuration menu
    Copy the full SHA
    7545301 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2026

  1. Configuration menu
    Copy the full SHA
    e221957 View commit details
    Browse the repository at this point in the history
  2. fix: stop ISBN-10/ISSN digits from truncating EAN-13 payload

    Subclass digits overrode EuropeanArticleNumber13.digits, so get_fullcode()
    returned a truncated barcode while str() still showed the correct ISBN/ISSN.
    santhreal authored and WhyNotHugo committed Jul 27, 2026
    Configuration menu
    Copy the full SHA
    60a9958 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    63741fc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    71e0139 View commit details
    Browse the repository at this point in the history
  5. Fix bogus docstring format

    WhyNotHugo committed Jul 27, 2026
    Configuration menu
    Copy the full SHA
    908f338 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9e10aac View commit details
    Browse the repository at this point in the history
  7. Fix Code128 build() producing different output on repeated calls

    Code128._build mutated self._charset and self._digit_buffer (both set
    only in __init__) but never reset them. After a build that switched to
    charset A/B or left a digit buffered, a subsequent build()/encoded call
    started from stale state and emitted a different, incorrect bit string.
    
    Reset both to their initial values at the start of _build() so repeated
    calls on the same instance are deterministic.
    
    Fixes WhyNotHugo#143
    apoorvdarshan authored and WhyNotHugo committed Jul 27, 2026
    Configuration menu
    Copy the full SHA
    73316bf View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    12e9a5f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8f25ae8 View commit details
    Browse the repository at this point in the history
  10. Add support for Python 3.14

    Co-Authored-By: Hugo Osvaldo Barrera <[email protected]>
    cedk and WhyNotHugo committed Jul 27, 2026
    Configuration menu
    Copy the full SHA
    ef61ffe View commit details
    Browse the repository at this point in the history
Loading