Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
simplejson
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenVMS
Python
Modules
simplejson
Commits
382554938436
Commit
382554938436
authored
11 years ago
by
Daniel Jowett
Browse files
Options
Downloads
Patches
Plain Diff
define an 'enumerate' function (which is not defined in Python2.2)
parent
8d2bfa3d7bd4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
simplejson/scanner.py
+2
-0
2 additions, 0 deletions
simplejson/scanner.py
with
2 additions
and
0 deletions
simplejson/scanner.py
+
2
−
0
View file @
38255493
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
Iterator based sre token scanner
Iterator based sre token scanner
"""
"""
from
__future__
import
generators
from
__future__
import
generators
import
__builtin__
__builtin__
.
enumerate
=
lambda
seq
:
zip
(
xrange
(
len
(
seq
)),
seq
)
import
sre_parse
,
sre_compile
,
sre_constants
import
sre_parse
,
sre_compile
,
sre_constants
from
sre_constants
import
BRANCH
,
SUBPATTERN
from
sre_constants
import
BRANCH
,
SUBPATTERN
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment