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

cqlsh can't show data under python2.5, python2.6

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.0.8
    • Legacy/Tools
    • Low

    Description

      Kris Hahn discovered a python2.6-ism in recent cqlsh changes:

              bval = escapedval.encode(output_encoding, errors='backslashreplace')
      

      before python2.7, str.encode() didn't accept a keyword argument for the second parameter. the semantics are the same without naming the parameter, though, so removing the "errors=" bit should suffice to make it run right.

      does not affect any released version, but does affect HEAD of cassandra-1.0, cassandra-1.1, and trunk.

      Attachments

        1. 3846.patch.txt
          0.7 kB
          paul cannon

        Activity

          People

            thepaul paul cannon
            thepaul paul cannon
            paul cannon
            Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: