Skip to content

Commit

Permalink
PEP8 spacing in Tutorial example
Browse files Browse the repository at this point in the history
TODO: Use context managers once possible on all supported
versions of Python.
  • Loading branch information
peterjc committed Jan 19, 2016
1 parent 4bd8972 commit 95a1cae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/Tutorial/chapter_entrez.tex
Expand Up @@ -390,11 +390,11 @@ \section{EFetch: Downloading full records from Entrez}
import os
from Bio import SeqIO
from Bio import Entrez
Entrez.email = "A.N.Other@example.com" # Always tell NCBI who you are
Entrez.email = "A.N.Other@example.com" # Always tell NCBI who you are
filename = "gi_186972394.gbk"
if not os.path.isfile(filename):
# Downloading...
net_handle = Entrez.efetch(db="nucleotide",id="186972394",rettype="gb", retmode="text")
net_handle = Entrez.efetch(db="nucleotide", id="186972394", rettype="gb", retmode="text")
out_handle = open(filename, "w")
out_handle.write(net_handle.read())
out_handle.close()
Expand Down

0 comments on commit 95a1cae

Please sign in to comment.