Commit 56227886 authored by Federico Vaga's avatar Federico Vaga

sw:py: rename open/close to request/release

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 75b976ca
......@@ -48,11 +48,11 @@ class PySPEC:
>>> spec_dma.close()
"""
spec_dma = self.PySPECDMA(self)
spec_dma.open()
spec_dma.request()
try:
yield spec_dma
finally:
spec_dma.close()
spec_dma.release()
class PySPECDMA:
"""
......@@ -81,7 +81,7 @@ class PySPEC:
"""
self.spec = spec
def open(self):
def request(self):
"""
Open a DMA file descriptor
......@@ -89,7 +89,7 @@ class PySPEC:
"""
self.dma_file = open(os.path.join(self.spec.debugfs_fpga, "dma"),
"rb+", buffering=0)
def close(self):
def release(self):
"""
Close the DMA file descriptor
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment