Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
f72c8abb
Commit
f72c8abb
authored
Jul 05, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge 'L' handling from branch
parent
7f811553
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lib/python/ZPublisher/Converters.py
lib/python/ZPublisher/Converters.py
+5
-2
No files found.
lib/python/ZPublisher/Converters.py
View file @
f72c8abb
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
# attributions are listed in the accompanying credits file.
# attributions are listed in the accompanying credits file.
#
#
##############################################################################
##############################################################################
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
import
regex
import
regex
from
string
import
atoi
,
atol
,
atof
,
join
,
split
,
strip
from
string
import
atoi
,
atol
,
atof
,
join
,
split
,
strip
...
@@ -138,7 +138,10 @@ def field2long(v):
...
@@ -138,7 +138,10 @@ def field2long(v):
return
map
(
field2long
,
v
)
return
map
(
field2long
,
v
)
if
hasattr
(
v
,
'read'
):
v
=
v
.
read
()
if
hasattr
(
v
,
'read'
):
v
=
v
.
read
()
else
:
v
=
str
(
v
)
else
:
v
=
str
(
v
)
# we can remove the check for an empty string when we go to python 1.4
# handle trailing 'L' if present.
if
v
[
-
1
:]
in
(
'L'
,
'l'
):
v
=
v
[:
-
1
]
if
v
:
return
atol
(
v
)
if
v
:
return
atol
(
v
)
raise
ValueError
,
'Empty entry when <strong>integer</strong> expected'
raise
ValueError
,
'Empty entry when <strong>integer</strong> expected'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment