Skip to content

Commit 18ab8e4

Browse files
committed
Merge remote-tracking branch 'origin' into default-socket-location
2 parents 3db74dd + 0b8fdec commit 18ab8e4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+204
-233
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
language: python
22
python:
3-
- "2.7"
4-
- "3.4"
5-
- "3.5"
63
- "3.6"
4+
- "3.7"
5+
- "3.8"
76

87
matrix:
98
include:

changelog.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,33 @@
1-
TBD
2-
===
1+
1.21.1
2+
======
3+
4+
Bug Fixes:
5+
----------
6+
7+
* Fix broken auto-completion for favorite queries (Thanks: [Amjith]).
8+
* Fix undefined variable exception when running with --no-warn (Thanks: [Georgy Frolov])
9+
10+
1.21.0
11+
======
312

413
Features:
514
---------
615
* Added DSN alias name as a format specifier to the prompt (Thanks: [Georgy Frolov]).
716
* Mark `update` without `where`-clause as destructive query (Thanks: [Klaus Wünschel]).
817
* Added DELIMITER command (Thanks: [Georgy Frolov])
918
* Added clearer error message when failing to connect to the default socket.
19+
* Extend main.is_dropping_database check with create after delete statement.
20+
* Search `${XDG_CONFIG_HOME}/mycli/myclirc` after `${HOME}/.myclirc` and before `/etc/myclirc` (Thanks: [Takeshi D. Itoh])
1021

22+
Bug Fixes:
23+
----------
24+
25+
* Allow \o command more than once per session (Thanks: [Georgy Frolov])
26+
* Fixed crash when the query dropping the current database starts with a comment (Thanks: [Georgy Frolov])
27+
28+
Internal:
29+
---------
30+
* deprecate python versions 2.7, 3.4, 3.5; support python 3.8
1131

1232
1.20.1
1333
======
@@ -17,7 +37,6 @@ Bug Fixes:
1737

1838
* Fix an error when using login paths with an explicit database name (Thanks: [Thomas Roten]).
1939

20-
2140
1.20.0
2241
======
2342

mycli/AUTHORS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ Contributors:
6868
* Mike Palandra
6969
* Georgy Frolov
7070
* Jonathan Lloyd
71+
* Jakub Boukal
72+
* Takeshi D. Itoh
73+
* laixintao
7174

7275
Creator:
7376
--------

mycli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.20.1'
1+
__version__ = '1.21.1'

mycli/clibuffer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import unicode_literals
2-
31
from prompt_toolkit.enums import DEFAULT_BUFFER
42
from prompt_toolkit.filters import Condition
53
from prompt_toolkit.application import get_app

mycli/clistyle.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import unicode_literals
2-
31
import logging
42

53
import pygments.styles

mycli/clitoolbar.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import unicode_literals
2-
31
from prompt_toolkit.key_binding.vi_state import InputMode
42
from prompt_toolkit.application import get_app
53
from prompt_toolkit.enums import EditingMode

mycli/compat.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
# -*- coding: utf-8 -*-
21
"""Platform and Python version compatibility support."""
32

43
import sys
54

65

7-
PY2 = sys.version_info[0] == 2
8-
PY3 = sys.version_info[0] == 3
96
WIN = sys.platform in ('win32', 'cygwin')

mycli/config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21
import shutil
32
from io import BytesIO, TextIOWrapper
43
import logging
@@ -240,7 +239,7 @@ def _remove_pad(line):
240239

241240
if pad_length > len(line) or len(set(line[-pad_length:])) != 1:
242241
# Pad length should be less than or equal to the length of the
243-
# plaintext. The pad should have a single unqiue byte.
242+
# plaintext. The pad should have a single unique byte.
244243
logger.warning('Invalid pad found in login path file.')
245244
return False
246245

mycli/encodingutils.py

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)