# -*- coding: utf-8 -*-
"""Data interface functions for the mudpy engine."""
-# Copyright (c) 2004-2012 Jeremy Stanley <fungi@yuggoth.org>. Permission
+# Copyright (c) 2004-2013 Jeremy Stanley <fungi@yuggoth.org>. Permission
# to use, copy, modify, and distribute this software is granted under
# terms provided in the LICENSE file distributed with this software.
# if it's marked private, chmod it appropriately
if self.filename in self.universe.private_files and oct(
stat.S_IMODE(os.stat(self.filename)[stat.ST_MODE])
- ) != 0600:
- os.chmod(self.filename, 0600)
+ ) != 0o0600:
+ os.chmod(self.filename, 0o0600)
# write it back sorted, instead of using ConfigParser
sections = self.data.sections()