contrib: correct version check #13699

pull kallewoof wants to merge 1 commits into bitcoin:master from kallewoof:contrib-py-zmq-version changing 2 files +2 −2
  1. kallewoof commented at 6:37 AM on July 18, 2018: member

    [ not(major >= 3 and minor >= 4) ] fails for '4.0':

    >>> major=4
    >>> minor=0
    >>> if not (major >= 3 and minor >= 5):
    ...     print('This example only works with Python 3.5 and greater')
    ...
    This example only works with Python 3.5 and greater
    
  2. fanquake added the label Scripts and tools on Jul 18, 2018
  3. ken2812221 commented at 6:54 AM on July 18, 2018: contributor

    utACK 3cfce8f

  4. practicalswift commented at 7:26 AM on July 18, 2018: contributor

    utACK 3cfce8f23b37936a36cd386d47144bc725740391

  5. contrib: correct version check
    [ not(major >= 3 and minor >= 4) ] fails for '4.0'
    066d2973a6
  6. in contrib/zmq/zmq_sub.py:33 in 3cfce8f23b outdated
      29 | @@ -30,7 +30,7 @@
      30 |  import struct
      31 |  import sys
      32 |  
      33 | -if not (sys.version_info.major >= 3 and sys.version_info.minor >= 5):
      34 | +if not (sys.version_info.major > 3 or (sys.version_info.major == 3 and sys.version_info.minor >= 5)):
    


    laanwj commented at 7:31 AM on July 18, 2018:

    what about

    if (sys.version_info.major, sys.version_info.minor) < (3, 5):
    

    kallewoof commented at 7:45 AM on July 18, 2018:

    What magic is this?

  7. kallewoof force-pushed on Jul 18, 2018
  8. practicalswift commented at 7:56 AM on July 18, 2018: contributor

    utACK 066d2973a6fff0bf494c4a0000218fe72983808b

  9. fanquake commented at 9:58 AM on July 18, 2018: member

    utACK 066d297

  10. laanwj commented at 12:51 PM on July 18, 2018: member

    utACK 066d2973a6fff0bf494c4a0000218fe72983808b

  11. laanwj merged this on Jul 18, 2018
  12. laanwj closed this on Jul 18, 2018

  13. laanwj referenced this in commit 4c6d1b9973 on Jul 18, 2018
  14. kallewoof deleted the branch on Oct 17, 2019
  15. PastaPastaPasta referenced this in commit b514e68a13 on Jul 19, 2020
  16. PastaPastaPasta referenced this in commit 6156e515ae on Jul 24, 2020
  17. PastaPastaPasta referenced this in commit 3c18fd2cbd on Jul 27, 2020
  18. UdjinM6 referenced this in commit 30ebd2c161 on Jul 27, 2020
  19. UdjinM6 referenced this in commit e867be596e on Jul 27, 2020
  20. Fabcien referenced this in commit 5b71c10db3 on Oct 14, 2021
  21. DrahtBot locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me