X-Git-Url: https://mudpy.org/gitweb?a=blobdiff_plain;f=lib%2Fmudpy%2Fdata.py;h=612b688e1ed789c7b6a8e0636f6a8064e9dda312;hb=d14168d58aedb181e31b224240667a68c0ec0bfa;hp=4553c7b50d39a5317a0791fb5d90006d844a9c50;hpb=1bc63aa79baaf35ab62b6462a96c7172fb6d3ba4;p=mudpy.git diff --git a/lib/mudpy/data.py b/lib/mudpy/data.py index 4553c7b..612b688 100644 --- a/lib/mudpy/data.py +++ b/lib/mudpy/data.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Data interface functions for the mudpy engine.""" -# Copyright (c) 2004-2012 Jeremy Stanley . Permission +# Copyright (c) 2004-2013 Jeremy Stanley . Permission # to use, copy, modify, and distribute this software is granted under # terms provided in the LICENSE file distributed with this software. @@ -151,8 +151,8 @@ class DataFile: # 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()