Skip to content

Commit

Permalink
Cosmetic changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardomurri committed Jan 5, 2018
1 parent 84f40ac commit 3e647b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions docs/glossary.rst
Expand Up @@ -71,7 +71,7 @@ Glossary
status (e.g., ``RUNNING`` or ``TERMINATED``). The terms *state*
and *status* are used interchangeably in GC3Pie_ documentation.

STDERR
STDERR
Abbreviation for "standard error stream"; it is the sequence of
all text messages that a command prints to inform the user of
problems or to report on operations progress. The Linux/UNIX
Expand All @@ -84,7 +84,7 @@ Glossary
Abbreviation for "standard output stream". It is the sequence of
all characters that constitute the output of a command. The Linux/UNIX
system allows two separate output streams, one for output proper, and
one for "error messages", dubbed `STDERR`:term:. It is entirely up
one for "error messages", dubbed `STDERR`:term:. It is entirely up
to the command to tag a message as "standard output" or "standard error".

Session
Expand All @@ -94,4 +94,3 @@ Glossary
Walltime
Short for *wall-clock time*: indicates the total running time of a
:term:`job`.

7 changes: 3 additions & 4 deletions gc3libs/persistence/sql.py
Expand Up @@ -273,10 +273,9 @@ def extra_fields(self):
@same_docstring_as(Store.list)
def list(self):
q = sql.select([self._tables.c.id])
conn = self._engine.connect()
rows = conn.execute(q)
ids = [i[0] for i in rows.fetchall()]
conn.close()
with closing(self._engine.connect()) as conn:
rows = conn.execute(q)
ids = [i[0] for i in rows.fetchall()]
return ids

@same_docstring_as(Store.replace)
Expand Down

0 comments on commit 3e647b9

Please sign in to comment.