File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -235,13 +235,13 @@ def __getitem__(self, item):
235
235
if not self .is_http_uri (item ):
236
236
raise ValueError ('{} is not a HTTP URI.' .format (item ))
237
237
if item not in self .cache :
238
- headers = {'Accept' : 'application/rdf+xml' }
239
- import datetime
240
- now = datetime .datetime .utcnow ()
241
- print ('\n downloading: {}' .format (item ))
238
+ headers = {'Accept' : 'application/rdf+xml, text/html ' }
239
+ # import datetime
240
+ # now = datetime.datetime.utcnow()
241
+ # print('\ndownloading: {}'.format(item))
242
242
self .cache [item ] = requests .get (item , headers = headers )
243
- then = datetime .datetime .utcnow ()
244
- print ('{}s' .format ((then - now ).total_seconds ()))
243
+ # then = datetime.datetime.utcnow()
244
+ # print('{}s'.format((then-now).total_seconds()))
245
245
246
246
return self .cache [item ]
247
247
You can’t perform that action at this time.
0 commit comments