Permalink
Browse files

Use list comprehension instead of map (really small optimization)

  • Loading branch information...
1 parent d88346f commit fec636e22935ac6466b6631388f35c0d2198a2ed @mvantellingen committed Dec 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 psycopg2ct/_impl/typecasts.py
@@ -163,7 +163,7 @@ def parse_unicode(value, length, cursor):
def _parse_date(value):
- return datetime.date(*map(int, value.split('-')))
+ return datetime.date(*[int(x) for x in value.split('-')])
def _parse_time(time, cursor):

0 comments on commit fec636e

Please sign in to comment.