#NEWLINE# def data_lines( path , verbose ) : #NEWLINE# #INDENT# '\n    ' #NEWLINE# u = urljoin ( 'http://www2.census.gov/census_2000/datasets/' , path ) #NEWLINE# f = RemoteFileObject ( u , verbose , ( 256 * 1024 ) ) #NEWLINE# z = ZipFile ( u ) #NEWLINE# n = z . namelist ( ) #NEWLINE# assert ( len ( n ) == 1 ) , ( 'Expected one file, not %d: %s' % ( len ( n ) , repr ( n ) ) ) #NEWLINE# for row in reader ( z . open ( n [ 0 ] ) ) : #NEWLINE# #INDENT# ( yield row )