projects
/
mudpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename internal:limits element to .mudpy.limit
[mudpy.git]
/
lib
/
mudpy
/
data.py
diff --git
a/lib/mudpy/data.py
b/lib/mudpy/data.py
index
9c167f5
..
02a9139
100644
(file)
--- a/
lib/mudpy/data.py
+++ b/
lib/mudpy/data.py
@@
-132,11
+132,8
@@
class DataFile:
"__control__"]:
max_count = self.data["__control__"]["backup_count"]
else:
"__control__"]:
max_count = self.data["__control__"]["backup_count"]
else:
- max_count = self.universe.categories[
- "internal"
- ][
- "limits"
- ].get("default_backup_count")
+ max_count = self.universe.contents["mudpy.limit"].get(
+ "backups")
if os.path.exists(self.filename) and max_count:
backups = []
for candidate in os.listdir(os.path.dirname(self.filename)):
if os.path.exists(self.filename) and max_count:
backups = []
for candidate in os.listdir(os.path.dirname(self.filename)):