Skip to content

Commit 2e26f8d

Browse files
authored
Merge pull request #104 from a-r-j/patch-0.4.1
update for 3.7 compat
2 parents c155226 + ed3965f commit 2e26f8d

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

.appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ build: false
22

33
environment:
44
matrix:
5-
- PYTHON_VERSION: 3.9
5+
- PYTHON_VERSION: 3.7
66
MINICONDA: C:\Miniconda3
77

88
init:

biopandas/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@
2424
# 'X.Y.dev0' is the canonical version of 'X.Y.dev'
2525
#
2626

27-
__version__ = "0.4.0"
27+
__version__ = "0.4.1"
2828
__author__ = "Sebastian Raschka <[email protected]>"

biopandas/pdb/pandas_pdb.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,8 @@ def _parse_header_code(self):
366366
header = self.df["OTHERS"][self.df["OTHERS"]["record_name"] == "HEADER"]
367367
if not header.empty:
368368
header = header["entry"].values[0]
369-
if s := header.split():
369+
s = header.split()
370+
if s:
370371
code = s[-1].lower()
371372
return header, code
372373

docs/CHANGELOG.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ The CHANGELOG for the current development version is available at
44
[https://github.com/rasbt/biopandas/blob/main/docs/sources/CHANGELOG.md](https://github.com/rasbt/biopandas/blob/main/docs/sources/CHANGELOG.md).
55

66

7+
8+
### 0.4.1 (05-13-2022)
9+
10+
##### Downloads
11+
12+
- [Source code (zip)](https://github.com/rasbt/biopandas/archive/v0.4.1.zip)
13+
- [Source code (tar.gz)](https://github.com/rasbt/biopandas/archive/v0.4.1.tar.gz)
14+
15+
##### Changes
16+
17+
- Remove walrus operator for Python 3.7 compatibility.
18+
19+
720
### 0.4.0 (05-11-2022)
821

922
##### Downloads
@@ -307,4 +320,4 @@ The CHANGELOG for the current development version is available at
307320

308321
### 0.1.2 (2015-11-23)
309322

310-
- First Release.
323+
- First Release.

0 commit comments

Comments
 (0)