Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-18787

Replace obsolete Python functions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 5.1
    • CQL/Interpreter
    • None

    Description

      1. Python's stdlib datetime.timezone.utc can replace the custom UTC timezone in pylib/cqlshlib/util.py.
      2. Removed unused attributes and functions:
        1. field_size _limit 
        2. trim_if_present()
        3. maybe_ensure_text()
      3. Simplify cql_version handling into a settor

      Functionality should remain the same while simplifying the code by eliminating ~60 lines.

      Attachments

        Activity

          People

            bschoeni Brad Schoening
            bschoeni Brad Schoening
            Brad Schoening
            Brandon Williams, Ekaterina Dimitrova
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: