Skip to content

Commit

Permalink
Update base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
talagayev authored Aug 6, 2024
1 parent 276190c commit 058e6d7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions package/MDAnalysis/topology/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,7 @@ class TopologyReaderBase(IOBase, metaclass=_Topologymeta):
"""
def __init__(self, filename):

if isinstance(filename, util.NamedStream):
self.filename = filename
else:
self.filename = str(filename)
self.filename = filename

def parse(self, **kwargs): # pragma: no cover
raise NotImplementedError("Override this in each subclass")
Expand Down

0 comments on commit 058e6d7

Please sign in to comment.