CodeAnt AI home pagelight logodark logo
  • Support
  • Dashboard
  • Dashboard
  • Join Community
Start Here
  • What is CodeAnt?
Setup
  • Github
  • Bitbucket
  • Gitlab
  • Azure Devops
Pull Request Review
  • Features
  • Customize Review
  • Quality Gates
  • Integrations
Scan center
  • Code Security
  • Code Quality
  • Cloud Security
  • Engineering Productivity
Integrations
  • Jira
  • Test Coverage
  • CI/CD
IDE
  • Setup
  • Review
  • Enhancements
Rule Reference
  • Compliance
  • Anti-Patterns
  • Code Governance
  • Infrastructure Security Database
  • Application Security Database
    • Apex
    • Bash
    • C
    • Clojure
    • Cpp
    • Csharp
    • Dockerfile
    • Elixir
    • Fingerprints
    • Generic
    • Go
    • Html
    • Java
    • Javascript
    • Json
    • Kotlin
    • Ocaml
    • Php
    • Problem-based-packs
    • Python
      • Airflow
      • Attr
      • Aws-lambda
      • Bokeh
      • Boto3
      • Cassandra
      • Click
      • Correctness
      • Couchbase
      • Cryptography
      • Distributed
      • Django
      • Docker
      • Elasticsearch
      • Fastapi
      • Flask
      • Jinja2
      • Jwt
      • Lang
        • Best practice
        • Code
        • Compatibility
        • Correctness
        • Correctness
        • Deserialization
        • File
        • Hardcoded
        • Maintainability
        • Os
        • Security
        • Security
      • Ldap3
      • Mariadb
      • Mysql
      • Mysqlclient
      • Neo4j
      • Openai
      • Peewee
      • Pg8000
      • Psycopg2
      • Pycryptodome
      • Pyjwt
      • Pymongo
      • Pymssql
      • Pymysql
      • Pyramid
      • Redis
      • Requests
      • Sh
      • Sqlalchemy
      • Tormysql
      • Urllib3
      • Webrepl
      • Wtforms
    • Ruby
    • Rust
    • Scala
    • Solidity
    • Swift
    • Terraform
    • Typescript
    • Yaml
Resources
  • Open Source
  • Blogs
Lang

Compatibility

python36-compatibility-ssl

this function is only available on Python 3.6+

python36-compatibility-Popen1

the errors argument to Popen is only available on Python 3.6+

python36-compatibility-Popen2

the encoding argument to Popen is only available on Python 3.6+

python37-compatibility-importlib

source_hash’ is only available on Python 3.7+. This does not work in lower versions, and therefore is not backwards compatible. Instead, use another hash function.

python37-compatibility-importlib2

Found ‘importlib.resources’, which is a module only available on Python 3.7+. This does not work in lower versions, and therefore is not backwards compatible. Use importlib_resources instead for older Python versions.

python37-compatibility-httpconn

Found usage of the ‘blocksize’ argument in a HTTPConnection call. This is only available on Python 3.7+ and is therefore not backwards compatible. Remove this in order for this code to work in Python 3.6 and below.

python37-compatibility-httpsconn

Found usage of the ‘blocksize’ argument in a HTTPSConnection call. This is only available on Python 3.7+ and is therefore not backwards compatible. Remove this in order for this code to work in Python 3.6 and below.

python37-compatibility-importlib3

Found usage of ‘importlib.abc.ResourceReader’. This module is only available on Python 3.7+ and is therefore not backwards compatible. Instead, use another loader.

python37-compatibility-textiowrapper

Found usage of ‘importlib.abc.ResourceReader’. This module is only available on Python 3.7+ and is therefore not backwards compatible. Instead, use another loader.

python37-compatibility-ipv6network1

IPv6Network.subnet_of is only available on Python 3.7+ and is therefore not backwards compatible. Instead, check if the subnet is in ‘subnets’.

python37-compatibility-ipv6network2

IPv6Network.supernet_of is only available on Python 3.7+ and is therefore not backwards compatible. Instead, check if the supernet is in ‘supernet’.

python37-compatibility-ipv4network1

IPv4Network.subnet_of is only available on Python 3.7+ and is therefore not backwards compatible. Instead, check if the subnet is in ‘subnets’.

python37-compatibility-ipv4network2

IPv4Network.supernet_of is only available on Python 3.7+ and is therefore not backwards compatible. Instead, check if the supernet is in ‘supernet’.

python37-compatibility-locale1

Found usage of the ‘monetary’ argument in a function call of ‘locale.format_string’. This is only available on Python 3.7+ and is therefore not backwards compatible. Instead, remove the ‘monetary’ argument.

python37-compatibility-math1

math.remainder is only available on Python 3.7+ and is therefore not backwards compatible. Instead, use math.fmod() or calculate X−n∗X - n* X−n∗Y.

python37-compatibility-multiprocess1

multiprocessing.Process.close() is only available on Python 3.7+ and is therefore not backwards compatible. Instead, use join().

python37-compatibility-multiprocess2

multiprocessing.Process.kill() is only available on Python 3.7+ and is therefore not backwards compatible. Instead, use terminate().

python37-compatibility-os1

os.preadv() is only available on Python 3.7+ and is therefore not backwards compatible. Instead, use a combination of os.readv() and os.pread().

python37-compatibility-os2-ok2

os.pwritev() is only available on Python 3.3+ and is therefore not backwards compatible. Instead, use a combination of pwrite() and writev().

python37-compatibility-pdb

pdb.set_trace() with the header argument is only available on Python 3.7+ and is therefore not backwards compatible. Instead, use set_trace() without the header argument.
Tainted code stdlibCorrectness
twitterlinkedin
Powered by Mintlify
Assistant
Responses are generated using AI and may contain mistakes.