Skip to content

Commit

Permalink
#327: Fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
kxepal committed Apr 15, 2015
1 parent 71fe966 commit 4963055
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiohttp/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
import io
import json
import mimetypes
import os
import urllib.parse
import weakref
import warnings
import chardet
from os import fstat

import aiohttp
from . import hdrs, helpers, streams
Expand Down Expand Up @@ -386,7 +386,7 @@ def update_body_from_data(self, data):
self.body = data
if not self.chunked and isinstance(data, io.BufferedReader):
# Not chunking if content-length can be determined
size = fstat(data.fileno()).st_size - data.tell()
size = os.fstat(data.fileno()).st_size - data.tell()
self.headers[hdrs.CONTENT_LENGTH] = str(size)
self.chunked = False
else:
Expand Down

0 comments on commit 4963055

Please sign in to comment.