setlr 0.2.10__tar.gz → 0.2.11__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  #!/Users/jimmccusker/opt/ipython/bin/python
2
- # EASY-INSTALL-ENTRY-SCRIPT: 'setlr==0.2.10','console_scripts','setlr'
3
- __requires__ = 'setlr==0.2.10'
2
+ # EASY-INSTALL-ENTRY-SCRIPT: 'setlr==0.2.11','console_scripts','setlr'
3
+ __requires__ = 'setlr==0.2.11'
4
4
  import sys
5
5
  from pkg_resources import load_entry_point
6
6
 
7
7
  if __name__ == '__main__':
8
8
  sys.exit(
9
- load_entry_point('setlr==0.2.10', 'console_scripts', 'setlr')()
9
+ load_entry_point('setlr==0.2.11', 'console_scripts', 'setlr')()
10
10
  )
@@ -240,7 +240,8 @@ def read_excel(location, result):
240
240
  )
241
241
  if result.value(csvw.header):
242
242
  args['header'] = [result.value(csvw.header).value]
243
- df = pandas.read_excel(get_content(location, result),encoding='utf-8', **args)
243
+ with get_content(location, result) as f:
244
+ df = pandas.read_excel(f,encoding='utf-8', **args)
244
245
  return df
245
246
 
246
247
  def read_xml(location, result):
@@ -253,8 +254,9 @@ def read_xml(location, result):
253
254
  f.iter_end("/*")
254
255
  for xp in result[setl.xpath]:
255
256
  f.iter_end(xp.value)
256
- for (i, (event, ele)) in enumerate(f.iterparse(get_content(location, result))):
257
- yield i, ele
257
+ with get_content(location, result) as fo:
258
+ for (i, (event, ele)) in enumerate(f.iterparse(fo)):
259
+ yield i, ele
258
260
 
259
261
 
260
262
  def read_json(location, result):
@@ -263,7 +265,8 @@ def read_json(location, result):
263
265
  selector = selector.value
264
266
  else:
265
267
  selector = ""
266
- return enumerate(ijson.items(get_content(location, result), selector))
268
+ with get_content(location, result) as fo:
269
+ return enumerate(ijson.items(fo, selector))
267
270
 
268
271
 
269
272
  extractors = {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: setlr
3
- Version: 0.2.10
3
+ Version: 0.2.11
4
4
  Summary: setlr is a tool for Semantic Extraction, Transformation, and Loading.
5
5
  Home-page: http://packages.python.org/setlr
6
6
  Author: Jim McCusker
@@ -0,0 +1 @@
1
+ {"is_release": false, "git_version": "bd1ed0e"}
@@ -1 +0,0 @@
1
- {"is_release": false, "git_version": "a559233"}