aboutsummaryrefslogtreecommitdiff
path: root/fifo.py
diff options
context:
space:
mode:
authorpacien2018-05-01 15:55:45 +0200
committerpacien2018-05-01 15:55:45 +0200
commit05216a4ad06e4617838afcd4dc7317a203a3887b (patch)
tree0c0ff8367b61989eb96b29071f13ece2bae8c760 /fifo.py
parentd2fec4901d6520e866481d4696d8347aab3eb171 (diff)
downloadmempager-simulator-05216a4ad06e4617838afcd4dc7317a203a3887b.tar.gz
Reformat code
Diffstat (limited to 'fifo.py')
-rw-r--r--fifo.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/fifo.py b/fifo.py
index c48629f..1881870 100644
--- a/fifo.py
+++ b/fifo.py
@@ -1,7 +1,7 @@
1#!/usr/bin/env python3 1#!/usr/bin/env python3
2 2
3# UPEM / Programmation système / Projet : Simulation de gestion de mémoire virtuelle 3# UPEM / System programming / Project: Memory paging simulator
4# Pacien TRAN-GIRARD et Adam NAILI 4# Pacien TRAN-GIRARD, Adam NAILI
5 5
6from mem import Memory 6from mem import Memory
7from pageexception import * 7from pageexception import *
@@ -24,4 +24,3 @@ class FifoPaginator:
24 if page in self.mem.virt: self.mem.remove_virt(page) 24 if page in self.mem.virt: self.mem.remove_virt(page)
25 overwritten = self._put_main(page) 25 overwritten = self._put_main(page)
26 if overwritten is not None: self.mem.put_virt(overwritten) 26 if overwritten is not None: self.mem.put_virt(overwritten)
27