Details
-
Improvement
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
None
-
Code Clarity
-
Low Hanging Fruit
-
All
-
None
-
- ran tests on UTC with and without TZ set
- successfully ran pytests
- ran pycodestyle
Description
- Python's stdlib datetime.timezone.utc can replace the custom UTC timezone in pylib/cqlshlib/util.py.
- Removed unused attributes and functions:
- field_size _limit
- trim_if_present()
- maybe_ensure_text()
- Simplify cql_version handling into a settor
Functionality should remain the same while simplifying the code by eliminating ~60 lines.