Skip to content

Commit 2a568d1

Browse files
committed
Use underscore to break up long module names
1 parent d917317 commit 2a568d1

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

cassandra/protocol.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from six.moves import range
2323
import io
2424

25-
from cassandra import typecodes
25+
from cassandra import type_codes
2626
from cassandra import (Unavailable, WriteTimeout, ReadTimeout,
2727
WriteFailure, ReadFailure, FunctionFailure,
2828
AlreadyExists, InvalidRequest, Unauthorized,
@@ -548,7 +548,7 @@ class ResultMessage(_MessageType):
548548
paging_state = None
549549

550550
# Names match type name in module scope. Most are imported from cassandra.cqltypes (except CUSTOM_TYPE)
551-
type_codes = _cqltypes_by_code = dict((v, globals()[k]) for k, v in typecodes.__dict__.items() if not k.startswith('_'))
551+
type_codes = _cqltypes_by_code = dict((v, globals()[k]) for k, v in type_codes.__dict__.items() if not k.startswith('_'))
552552

553553
_FLAGS_GLOBAL_TABLES_SPEC = 0x0001
554554
_HAS_MORE_PAGES_FLAG = 0x0002
@@ -1001,20 +1001,20 @@ def cython_protocol_handler(colparser):
10011001
10021002
There are three Cython-based protocol handlers (least to most performant):
10031003
1004-
1. objparser.ListParser
1004+
1. obj_parser.ListParser
10051005
this parser decodes result messages into a list of tuples
10061006
1007-
2. objparser.LazyParser
1007+
2. obj_parser.LazyParser
10081008
this parser decodes result messages lazily by returning an iterator
10091009
1010-
3. numpyparser.NumPyParser
1010+
3. numpy_parser.NumPyParser
10111011
this parser decodes result messages into NumPy arrays
10121012
1013-
The default is to use objparser.ListParser
1013+
The default is to use obj_parser.ListParser
10141014
"""
10151015
# TODO: It may be cleaner to turn ProtocolHandler and ResultMessage into
10161016
# TODO: instances and use methods instead of class methods
1017-
from cassandra.rowparser import make_recv_results_rows
1017+
from cassandra.row_parser import make_recv_results_rows
10181018

10191019
class FastResultMessage(ResultMessage):
10201020
"""
@@ -1038,7 +1038,7 @@ class CythonProtocolHandler(ProtocolHandler):
10381038

10391039

10401040
if HAVE_CYTHON:
1041-
from cassandra.objparser import ListParser, LazyParser
1041+
from cassandra.obj_parser import ListParser, LazyParser
10421042
ProtocolHandler = cython_protocol_handler(ListParser())
10431043
LazyProtocolHandler = cython_protocol_handler(LazyParser())
10441044
else:
@@ -1047,7 +1047,7 @@ class CythonProtocolHandler(ProtocolHandler):
10471047

10481048

10491049
if HAVE_CYTHON and HAVE_NUMPY:
1050-
from cassandra.numpyparser import NumpyParser
1050+
from cassandra.numpy_parser import NumpyParser
10511051
NumpyProtocolHandler = cython_protocol_handler(NumpyParser())
10521052
else:
10531053
NumpyProtocolHandler = None

0 commit comments

Comments
 (0)