]> git.parisson.com Git - timeside.git/commitdiff
cleanup
authorGuillaume Pellerin <yomguy@parisson.com>
Sun, 27 Apr 2014 19:07:20 +0000 (21:07 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Sun, 27 Apr 2014 19:07:20 +0000 (21:07 +0200)
timeside/views.py

index e6d0c49ef4bc3fd5afe9e1da7d007d76147bf969..cc4653dbea39afa56f90c818ad895db7f616834d 100644 (file)
@@ -58,18 +58,6 @@ class UserViewSet(viewsets.ModelViewSet):
     serializer_class = UserSerializer
 
 
-
-def stream_from_file(__file):
-    chunk_size = 0x10000
-    f = open(__file, 'r')
-    while True:
-        __chunk = f.read(chunk_size)
-        if not len(__chunk):
-            f.close()
-            break
-        yield __chunk
-
-
 class IndexView(ListView):
 
     model = Item