diff options
author | edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-07-24 17:51:27 +0000 |
---|---|---|
committer | edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-07-24 17:51:27 +0000 |
commit | 0449a569b984417e3c2c9c33e098df4930b09394 (patch) | |
tree | e5fb1c4bfb633ac3edfb489e1641d9cdab704b62 /experimental/PdfViewer | |
parent | 43f2b2c833d7c7db200dd02077f0d47d5d7f209a (diff) |
pdfviewer: explicitely use set, instead of dictionary, fails to compile in some versions of python.
Review URL: https://codereview.chromium.org/19804010
git-svn-id: http://skia.googlecode.com/svn/trunk@10320 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/PdfViewer')
-rw-r--r-- | experimental/PdfViewer/spec2def.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/experimental/PdfViewer/spec2def.py b/experimental/PdfViewer/spec2def.py index ff64671330..36ced3df61 100644 --- a/experimental/PdfViewer/spec2def.py +++ b/experimental/PdfViewer/spec2def.py @@ -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 @@ columnValues = None mustFollowTableHeader = False emitedDitionaryName = '' -knownTypes = { +knownTypes = Set([ '(any)', unicode('undefined', 'utf8'), '(undefined)', @@ -49,7 +50,7 @@ unicode('specification', 'utf8'), '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> |