[fix] warning: use of deprecated item: prefer using indexing
Merge pull request #112 from errordeveloper/use_index_instead_of_get

[fix] warning: use of deprecated item: prefer using indexing

Reviewed-by: farcaller