Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Commit

Permalink
Satisfy stylecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
DarwinAwardWinner committed Nov 13, 2016
1 parent 70b1429 commit e2726b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions atomicwrites/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys
import tempfile

from typing import Any, AnyStr, Callable, IO, Iterator, Text
from typing import Any, AnyStr, Callable, IO, Iterator, Text # noqa

try:
import fcntl
Expand All @@ -29,7 +29,7 @@ def _proper_fsync(fd):
# https://lists.apple.com/archives/darwin-dev/2005/Feb/msg00072.html
# https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man2/fsync.2.html
# https://github.com/untitaker/python-atomicwrites/issues/6
fcntl.fcntl(fd, fcntl.F_FULLFSYNC) # type: ignore
fcntl.fcntl(fd, fcntl.F_FULLFSYNC) # type: ignore

def _sync_directory(directory):
# type: (Text) -> None
Expand Down Expand Up @@ -143,7 +143,7 @@ def __init__(self, path, mode='w',
self._mode = mode # type: Text
self._overwrite = overwrite # type: bool

def open(self): # type: ignore
def open(self): # type: ignore
'''
Open the temporary file.
'''
Expand Down

0 comments on commit e2726b4

Please sign in to comment.