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
0b3790ef
Commit
0b3790ef
authored
Jun 20, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed dumb bug in __main__ fix. :-(
parent
440f71a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
lib/Components/cPickle/cPickle.c
lib/Components/cPickle/cPickle.c
+12
-5
No files found.
lib/Components/cPickle/cPickle.c
View file @
0b3790ef
/*
$Id: cPickle.c,v 1.4
0 1997/06/19 18:57:36
jim Exp $
$Id: cPickle.c,v 1.4
1 1997/06/20 19:45:10
jim Exp $
Copyright
...
...
@@ -55,7 +55,7 @@
static
char
cPickle_module_documentation
[]
=
"C implementation and optimization of the Python pickle module
\n
"
"
\n
"
"$Id: cPickle.c,v 1.4
0 1997/06/19 18:57:36
jim Exp $
\n
"
"$Id: cPickle.c,v 1.4
1 1997/06/20 19:45:10
jim Exp $
\n
"
;
#include "Python.h"
...
...
@@ -667,14 +667,18 @@ whichmodule(PyObject *global, PyObject *global_name) {
that used __main__ if no module is found. I don't actually
like this rule. jlf
*/
j
=
1
;
name
=
__main___str
;
if
(
!
j
)
{
j
=
1
;
name
=
__main___str
;
}
/*
if (!j) {
PyErr_Format(PicklingError, "Could not find module for %s.",
"O", global_name);
return NULL;
}
*/
PyDict_SetItem
(
class_map
,
global
,
name
);
...
...
@@ -3873,7 +3877,7 @@ init_stuff(PyObject *module, PyObject *module_dict) {
void
initcPickle
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.4
0
$"
;
char
*
rev
=
"$Revision: 1.4
1
$"
;
PyObject
*
format_version
;
PyObject
*
compatible_formats
;
...
...
@@ -3908,6 +3912,9 @@ initcPickle() {
/****************************************************************************
$Log: cPickle.c,v $
Revision 1.41 1997/06/20 19:45:10 jim
Fixed dumb bug in __main__ fix. :-(
Revision 1.40 1997/06/19 18:57:36 jim
Added ident string.
...
...
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