Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use list comprehension instead of map (really small optimization)

  • Loading branch information...
commit fec636e22935ac6466b6631388f35c0d2198a2ed 1 parent d88346f
@mvantellingen authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  psycopg2ct/_impl/typecasts.py
View
2  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):
Please sign in to comment.
Something went wrong with that request. Please try again.