Skip to content

Commit

Permalink
imp deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxuanzhuang authored and orbeckst committed Aug 12, 2020
1 parent a9e749c commit 3a31ef6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/MDAnalysis/coordinates/chemfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
HAS_CHEMFILES = False

# Allow building documentation even if chemfiles is not installed
import imp
import types

class MockTrajectory:
pass
chemfiles = imp.new_module("chemfiles")
chemfiles = types.ModuleType("chemfiles")
chemfiles.Trajectory = MockTrajectory
else:
HAS_CHEMFILES = True
Expand Down

0 comments on commit 3a31ef6

Please sign in to comment.