Commits

Stefan Urbanek committed f4768cd

close csv file handle

Comments (0)

Files changed (1)

example/dataproxy/transform/csv_transform.py

-"""Data Proxy - XLS transformation adapter"""
+"""Data Proxy - CSV transformation adapter"""
 import urllib2
 import csv
 
 
 def transform(flow, url, query):
     handle = urllib2.urlopen(url)
-
     reader = csv.reader(handle)
 
     rows = []
     for row in reader:
         rows.append(row)
 
+    handle.close
+
     result = {
                 "header": {
                     "url": url,