Skip to content

Commit

Permalink
Remove commented utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
sgillies committed Dec 21, 2015
1 parent b91ad47 commit 93799e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fiona/ogrext.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ cdef class OGRFeatureBuilder:

# Catch and re-raise unicode encoding errors.
try:
key_bytes = ogr_key.encode(encoding) #'utf-8')
key_bytes = ogr_key.encode(encoding)
except (UnicodeEncodeError, UnicodeEncodeError) as exc:
raise FieldNameEncodeError(
"Failed to encode {0} using {1} codec: {2}".format(
Expand Down Expand Up @@ -314,7 +314,7 @@ cdef class OGRFeatureBuilder:

# Catch and re-raise string field value encoding errors.
try:
value_bytes = value.encode(encoding) #'utf-8')
value_bytes = value.encode(encoding)
except (UnicodeEncodeError, UnicodeDecodeError) as exc:
raise StringFieldEncodeError(
"Failed to encode {0} using {1} codec: {2}".format(
Expand Down

0 comments on commit 93799e6

Please sign in to comment.