summaryrefslogtreecommitdiff
path: root/attoconf/lib/c.py
diff options
context:
space:
mode:
Diffstat (limited to 'attoconf/lib/c.py')
-rw-r--r--attoconf/lib/c.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/attoconf/lib/c.py b/attoconf/lib/c.py
index 03f77da..98d88df 100644
--- a/attoconf/lib/c.py
+++ b/attoconf/lib/c.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with attoconf. If not, see <http://www.gnu.org/licenses/>.
-from __future__ import print_function, division, absolute_import
+
import errno
import os
@@ -44,7 +44,7 @@ class TempFile:
def __init__(self, filename, content):
self.filename = filename
if content is not None:
- with open(filename, 'wx') as of:
+ with open(filename, 'x') as of:
of.write(content)
else:
# TODO: raise OSError(errno.EEXIST) if file already exists