Compare commits
12 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 94c0d31369 | |||
|
|
6ce35be87f | ||
| 893148980e | |||
| 0a2f94ded8 | |||
| 5b7ba0cce3 | |||
| 1064faa107 | |||
| e55fe9f2ff | |||
| e0a5dce6de | |||
|
|
decf578c3f | ||
| 46072eb819 | |||
| f8baf9d409 | |||
| 208a7ef33c |
@@ -15,10 +15,12 @@ historyPath = os.path.expanduser("~/.pyhistory%s" % ver)
|
|||||||
|
|
||||||
# handler for saving history
|
# handler for saving history
|
||||||
def save_history(historyPath=historyPath):
|
def save_history(historyPath=historyPath):
|
||||||
|
import readline
|
||||||
try:
|
try:
|
||||||
readline.write_history_file(historyPath)
|
readline.write_history_file(historyPath)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
del readline
|
||||||
|
|
||||||
|
|
||||||
# read history, if it exists
|
# read history, if it exists
|
||||||
|
|||||||
@@ -1,3 +1,22 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 14 11:03:14 UTC 2020 - Antonio Larrosa <alarrosa@suse.com>
|
||||||
|
|
||||||
|
- Import readline in the save_history handler. Otherwise the call
|
||||||
|
to readline.write_history_file doesn't work (the readline import
|
||||||
|
at the beginning of the file is already removed) and is silently
|
||||||
|
ignored by the exception catcher.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 27 13:18:52 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Correct suse_version value for SLE-12
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 4 18:17:30 CET 2019 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Setup Conflicts: so that older version of Python don’t collide
|
||||||
|
with this package.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Nov 22 14:04:21 UTC 2019 - Matej Cepl <mcepl@suse.com>
|
Fri Nov 22 14:04:21 UTC 2019 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package shared-python-startup
|
# spec file for package shared-python-startup
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LLC
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -25,6 +25,12 @@ Source0: pythonstart
|
|||||||
Source1: LICENSE
|
Source1: LICENSE
|
||||||
BuildRequires: filesystem
|
BuildRequires: filesystem
|
||||||
Supplements: python(abi)
|
Supplements: python(abi)
|
||||||
|
Conflicts: python3 < 3.8
|
||||||
|
%if 0%{?suse_version} > 1315
|
||||||
|
Conflicts: (python2 without python2_split_startup)
|
||||||
|
%else
|
||||||
|
Conflicts: python2 < 2.7.17
|
||||||
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|||||||
Reference in New Issue
Block a user