Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(664)

Unified Diff: experimental/PdfViewer/spec2def.py

Issue 19804010: pdfviewer: explicitely use set, instead of dictionary, fails to compile in some versions of python. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/PdfViewer/spec2def.py
===================================================================
--- experimental/PdfViewer/spec2def.py (revision 10286)
+++ experimental/PdfViewer/spec2def.py (working copy)
@@ -3,6 +3,7 @@
import sys
import re
+from sets import Set
# TODO(edisonn): put processed part of file in a new file
# put unprocessed part, in a new file, so we see what we miss
@@ -24,7 +25,7 @@
mustFollowTableHeader = False
emitedDitionaryName = ''
-knownTypes = {
+knownTypes = Set([
'(any)',
unicode('undeļ¬ned', 'utf8'),
'(undefined)',
@@ -49,7 +50,7 @@
'text',
',',
' '
-}
+])
# TODO(edisonn): add a third element in the vector, the base class, by default it is Dictionary
# TODO(edisonn): add overrides for types map<field_name, type_name>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698