Skip to content

Commit

Permalink
Fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
gmatteo committed Jul 19, 2024
1 parent 4f378d0 commit 7a9306d
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions pymatgen/io/abinit/pseudos.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,22 +53,14 @@
# Tools and helper functions.


<<<<<<< HEAD
def straceback() -> str:
"""Get a string with the traceback."""
#def straceback() -> str:
# """Get a string with the traceback."""
#
# return "\n".join((traceback.format_exc(), str(sys.exc_info()[0])))

return "\n".join((traceback.format_exc(), str(sys.exc_info()[0])))


def _read_nlines(filename: str, n_lines: int) -> list[str]:
"""
Read at most n_lines lines from file filename.
If n_lines is < 0, the entire file is read.
"""
=======
def _read_nlines(filename: str, n_lines: int) -> list[str]:
"""Read at most nlines from filename. If nlines is < 0, the entire file is read."""
>>>>>>> trunk/master
if n_lines < 0:
with open(filename, encoding="utf-8") as file:
return file.readlines()
Expand Down

0 comments on commit 7a9306d

Please sign in to comment.