Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(162)  |  Call(154)  |  Derive(0)  |  Import(8)
int(x=0) -> int or long
int(x, base=10) -> int or long

Convert a number or string to an integer, or return 0 if no arguments
are given.  If x is floating point, the conversion truncates towards zero.
If x is outside the integer range, the function returns a long instead.

If x is not a number or if base is given, then x must be a string or
Unicode object representing an integer literal in the given base.  The
literal can be preceded by '+' or '-' and be surrounded by whitespace.(more...)

src/p/k/pkglib-HEAD/pkglib/pkglib/setuptools/command/upload_docs.py   pkglib(Download)
            conn.send(body)
        except socket.error as e:
            self.announce(str(e), log.ERROR)
            return
 
        else:
            self.announce('Upload failed (%s): %s' % (r.status, r.reason),
                          log.ERROR)
        if self.show_response:
            print("%s %s %s" % ('-' * 75, r.read(), '-' * 75))

src/a/s/asl-1.0.1/setup.py   asl(Download)
            except socket.error:
                e = socket.exc_info()[1]
                self.announce(str(e), log.ERROR)
                return
 
            else:
                self.announce('Upload failed (%s): %s' % (r.status, r.reason),
                    log.ERROR)
 
                print ('-'*75)

src/p/y/py2app-0.8/setup.py   py2app(Download)
            except socket.error:
                e = socket.exc_info()[1]
                self.announce(str(e), log.ERROR)
                return
 
            else:
                self.announce('Upload failed (%s): %s' % (r.status, r.reason),
                    log.ERROR)
 
                print ('-'*75)

src/a/l/altgraph-0.11/setup.py   altgraph(Download)
            except socket.error:
                e = socket.exc_info()[1]
                self.announce(str(e), log.ERROR)
                return
 
            else:
                self.announce('Upload failed (%s): %s' % (r.status, r.reason),
                    log.ERROR)
 
                print ('-'*75)

src/m/o/modulegraph-0.11.1/setup.py   modulegraph(Download)
            except socket.error:
                e = socket.exc_info()[1]
                self.announce(str(e), log.ERROR)
                return
 
            else:
                self.announce('Upload failed (%s): %s' % (r.status, r.reason),
                    log.ERROR)
 
                print ('-'*75)

src/m/a/macholib-1.6/setup.py   macholib(Download)
            except socket.error:
                e = socket.exc_info()[1]
                self.announce(str(e), log.ERROR)
                return
 
            else:
                self.announce('Upload failed (%s): %s' % (r.status, r.reason),
                    log.ERROR)
 
                print ('-'*75)

src/p/k/pkglib-HEAD/pkglib/pkglib/setuptools/command/upload.py   pkglib(Download)
        else:
            self.announce('Upload failed (%s): %s' % (status, msg),
                          log.ERROR)
 
    def _generate_mime_body(self, data, boundary):

src/c/o/cobbler-HEAD/setup.py   cobbler(Download)
            cmd = build_man._COMMAND % ('man', infile, outfile)
            if os.system(cmd):
                log.announce("Creation of %s manpage failed." % man, log.ERROR)
                exit(1)
 

src/p/y/pypissh-1.4/pypissh.py   pypissh(Download)
            http.send(body)
        except socket.error, e:
            self.announce(str(e), log.ERROR)
            return
 
        else:
            self.announce('Upload failed (%s): %s' % (r.status, r.reason),
                          log.ERROR)
        if self.show_response:
            print '-'*75, r.read(), '-'*75

src/n/o/noc-0.7(3)/contrib/src/docutils/setup.py   noc(Download)
        def run(self):
            build_py_2to3.run(self)
            print("copying aux dirs")
            loglevel = log.set_threshold(log.ERROR)
            for source in ['tools', 'test']:

  1 | 2  Next