scylla-cqlsh 6.0.13__cp37-cp37m-macosx_10_9_x86_64.whl → 6.0.14__cp37-cp37m-macosx_10_9_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of scylla-cqlsh might be problematic. Click here for more details.

Binary file
cqlsh/cqlsh.py CHANGED
@@ -152,7 +152,7 @@ if os.path.isdir(cqlshlibdir):
152
152
  from cqlshlib import cql3handling, pylexotron, sslhandling, cqlshhandling, authproviderhandling
153
153
  from cqlshlib.copyutil import ExportTask, ImportTask
154
154
  from cqlshlib.displaying import (ANSI_RESET, BLUE, COLUMN_NAME_COLORS, CYAN,
155
- RED, WHITE, FormattedValue, colorme)
155
+ RED, YELLOW, WHITE, FormattedValue, colorme)
156
156
  from cqlshlib.formatting import (DEFAULT_DATE_FORMAT, DEFAULT_NANOTIME_FORMAT,
157
157
  DEFAULT_TIMESTAMP_FORMAT, CqlType, DateTimeFormat,
158
158
  format_by_type)
@@ -212,7 +212,7 @@ parser.add_option('--cqlversion', default=None,
212
212
  'by default the highest version supported by the server will be used.'
213
213
  ' Examples: "3.0.3", "3.1.0"')
214
214
  parser.add_option("--protocol-version", type="int", default=None,
215
- help='Specify a specific protcol version otherwise the client will default and downgrade as necessary')
215
+ help='Specify a specific protocol version otherwise the client will default and downgrade as necessary')
216
216
 
217
217
  parser.add_option("-e", "--execute", help='Execute the statement and quit.')
218
218
  parser.add_option("--connect-timeout", default=DEFAULT_CONNECT_TIMEOUT_SECONDS, dest='connect_timeout',
@@ -1110,8 +1110,8 @@ class Shell(cmd.Cmd):
1110
1110
  try:
1111
1111
  self.conn.refresh_schema_metadata(5) # will throw exception if there is a schema mismatch
1112
1112
  except Exception:
1113
- self.printerr("Warning: schema version mismatch detected; check the schema versions of your "
1114
- "nodes in system.local and system.peers.")
1113
+ self.printwarn("Warning: schema version mismatch detected; check the schema versions of your "
1114
+ "nodes in system.local and system.peers.")
1115
1115
  self.conn.refresh_schema_metadata(-1)
1116
1116
 
1117
1117
  if result is None:
@@ -2290,6 +2290,13 @@ class Shell(cmd.Cmd):
2290
2290
  text = '%s:%d:%s' % (self.stdin.name, self.lineno, text)
2291
2291
  self.writeresult(text, color, newline=newline, out=sys.stderr)
2292
2292
 
2293
+ def printwarn(self, text, color=YELLOW, newline=True, shownum=None):
2294
+ if shownum is None:
2295
+ shownum = self.show_line_nums
2296
+ if shownum:
2297
+ text = '%s:%d:%s' % (self.stdin.name, self.lineno, text)
2298
+ self.writeresult(text, color, newline=newline, out=sys.stderr)
2299
+
2293
2300
  def stop_coverage(self):
2294
2301
  if self.coverage and self.cov is not None:
2295
2302
  self.cov.stop()
cqlshlib/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # file generated by setuptools_scm
2
2
  # don't change, don't track in version control
3
- __version__ = version = '6.0.13'
4
- __version_tuple__ = version_tuple = (6, 0, 13)
3
+ __version__ = version = '6.0.14'
4
+ __version_tuple__ = version_tuple = (6, 0, 14)
cqlshlib/copyutil.py CHANGED
@@ -2243,7 +2243,7 @@ class TokenMap(object):
2243
2243
 
2244
2244
  self._initialize_ring()
2245
2245
 
2246
- # Note that refresh metadata is disabled by default and we currenlty do not intercept it
2246
+ # Note that refresh metadata is disabled by default and we currently do not intercept it
2247
2247
  # If hosts are added, removed or moved during a COPY operation our token map is no longer optimal
2248
2248
  # However we can cope with hosts going down and up since we filter for replicas that are up when
2249
2249
  # making each batch
cqlshlib/pylexotron.py CHANGED
@@ -384,7 +384,7 @@ class ParsingRuleSet:
384
384
  def parse_rules(cls, rulestr):
385
385
  tokens, unmatched = cls.RuleSpecScanner.scan(rulestr)
386
386
  if unmatched:
387
- raise LexingError.from_text(rulestr, unmatched, msg="Syntax rules are unparseable")
387
+ raise LexingError.from_text(rulestr, unmatched, msg="Syntax rules are unparsable")
388
388
  rules = {}
389
389
  terminals = []
390
390
  tokeniter = iter(tokens)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scylla-cqlsh
3
- Version: 6.0.13
3
+ Version: 6.0.14
4
4
  Summary: cqlsh is a Python-based command-line client for running CQL commands on a scylla cluster.
5
5
  Home-page: https://github.com/scylladb/scylla-cqlsh
6
6
  Author: Israel Fruchter
@@ -1,26 +1,26 @@
1
- copyutil.cpython-37m-darwin.so,sha256=lTnXPilnvqN9bYmojiWK6H4Sda7qPQrxIg4L0n_o-NM,1641176
2
- scylla_cqlsh-6.0.13.dist-info/RECORD,,
3
- scylla_cqlsh-6.0.13.dist-info/WHEEL,sha256=4t-pBRd6YCyaVED7zSv5apHXx88xTUgb7rzrz0GO1Rk,110
4
- scylla_cqlsh-6.0.13.dist-info/entry_points.txt,sha256=oE4unqgR3WwNkCJDGlMG1HYtCE3nEZZ4d9CIl-JSZyQ,46
5
- scylla_cqlsh-6.0.13.dist-info/top_level.txt,sha256=PVG-5w7PDG3FoAJH6Rq2I8C0y4cKa2KOW75GxjHkmQ4,24
6
- scylla_cqlsh-6.0.13.dist-info/LICENSE.txt,sha256=JAuKOf39K9OzU5wC40RmM0iE_ISwVrV_BunaNTI-zZc,11360
7
- scylla_cqlsh-6.0.13.dist-info/METADATA,sha256=HJ0LrtCC8X-eeyHBCWsAwYVBeaGQjzWeTG2R6420wgw,2814
1
+ copyutil.cpython-37m-darwin.so,sha256=n32xMnTIBwqXxZpb_AOxglmaXEesWzUu2deXJqEY3w4,1640856
2
+ scylla_cqlsh-6.0.14.dist-info/RECORD,,
3
+ scylla_cqlsh-6.0.14.dist-info/WHEEL,sha256=HS_2vgrXyXO7N4Q-5VnuMAgG-fG_r8eemMgfU9Aw3Kk,110
4
+ scylla_cqlsh-6.0.14.dist-info/entry_points.txt,sha256=oE4unqgR3WwNkCJDGlMG1HYtCE3nEZZ4d9CIl-JSZyQ,46
5
+ scylla_cqlsh-6.0.14.dist-info/top_level.txt,sha256=PVG-5w7PDG3FoAJH6Rq2I8C0y4cKa2KOW75GxjHkmQ4,24
6
+ scylla_cqlsh-6.0.14.dist-info/LICENSE.txt,sha256=JAuKOf39K9OzU5wC40RmM0iE_ISwVrV_BunaNTI-zZc,11360
7
+ scylla_cqlsh-6.0.14.dist-info/METADATA,sha256=MxJIX58wbUL6z3_HSouHvCxDcrciADd7jAm_UiJe0pI,2814
8
8
  cqlshlib/authproviderhandling.py,sha256=p4r_sk64AC5eiv__n-gjwQk2Ni_CcK6lyAWSKEcgINs,7078
9
9
  cqlshlib/cqlshhandling.py,sha256=BUu9wi7H1Xgil9lci-48TCPQ1xwe2-OTNXsW7jiewlM,10510
10
10
  cqlshlib/tracing.py,sha256=ct7siXwNMINjGVXn9qr5h7XhDDM6Bi1uLljPUtcve-A,3403
11
11
  cqlshlib/sslhandling.py,sha256=0_srBAe1l6zO_Ct394CyFzW94O7lYOkRS4QEBNuEMiE,3918
12
12
  cqlshlib/saferscanner.py,sha256=T4eSYVWuZf4piTS9PgHjFhuY6g1fOb4VVa1Bu4Y1v_I,3539
13
- cqlshlib/_version.py,sha256=spl8HvSOAOQTU-o6mMmoS7Qf1aZbV2RTGAGK5CVE2Rk,162
13
+ cqlshlib/_version.py,sha256=1KRSi0bxouPc4-fmBANJ1OByK6ksvBKF4UIJHn45qnk,162
14
14
  cqlshlib/wcwidth.py,sha256=PsbF7OaDlLItaiV6niu8F_OOgVYLJo0Ypb5-cOJV3QY,15865
15
15
  cqlshlib/displaying.py,sha256=bsA7T4BwQHgtH4jzCJeU3JrpgMT5k0xZ7EA2AnhYG7g,3977
16
16
  cqlshlib/util.py,sha256=qWQmq9v28vZwZ4apzK0-UQOYPIW3TMk-Jq9I69LbW0k,5057
17
17
  cqlshlib/cqlhandling.py,sha256=J-zzfU8sj0GbX-5vh5uV1gmFAYD_WOBsnVgd9PMaHoc,13103
18
18
  cqlshlib/__init__.py,sha256=IhAMRujMv3XMvwQcYhUyXvJtWYuHpI-WfnIookmRago,3184
19
19
  cqlshlib/formatting.py,sha256=NBHxsrXS3X8qcGewn98iTP7ys3JQUvWGf9iIWk-ErL0,23032
20
- cqlshlib/copyutil.py,sha256=iHAsPCmnB_u30f9kEL-kUARstQardAZFVSp2uo1Hv_4,113378
20
+ cqlshlib/copyutil.py,sha256=gKG9sSvbYmC9uCCaXu1XOlNvH5lsXl52qgPjaOXUiIA,113378
21
21
  cqlshlib/helptopics.py,sha256=bBPtNHn2ySgO9K4nFBpJw2gcibryIdRh7dm3b9TUubQ,4524
22
- cqlshlib/pylexotron.py,sha256=XFXI-TFdMcZ6xrJYkKY3fEO7eriCRt2nt_xWSeZfNc8,19274
22
+ cqlshlib/pylexotron.py,sha256=QY3nZ-fP-yGFIixMV33IgMlKV8A51AxnNYya0PGZc6I,19273
23
23
  cqlshlib/cql3handling.py,sha256=S2rA8pbeSKjvmtWnBIthkDpC41pJU7L0OQO2Ob-YYg4,57506
24
- cqlsh/cqlsh.py,sha256=en-k68dnVgB3NvbBhIPAi8kRNZ0pZ0IFDL94YZY2hyc,110584
24
+ cqlsh/cqlsh.py,sha256=wRvkXUQSD10T0m1boTZtKdFzMo_WI9ojjgDB4arD6q0,110899
25
25
  cqlsh/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
26
26
  cqlsh/__main__.py,sha256=-IR7kYVwXf9uq9OBeVlAB5I386E1N9iEhrjn3sCw-74,220
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.2)
2
+ Generator: bdist_wheel (0.42.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp37-cp37m-macosx_10_9_x86_64
5
5