Skip to content

Instantly share code, notes, and snippets.

Avatar

Stefano Rivera stefanor

View GitHub Profile
View pypy-2.3-test-fail.log
======================================================================
FAIL: CheckOpcodeCount (sqlite3.test.hooks.ProgressTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/«BUILDDIR»/pypy-2.3+dfsg/lib-python/2.7/sqlite3/test/hooks.py", line 165, in CheckOpcodeCount
self.assertTrue(first_count > second_count)
AssertionError: False is not true
----------------------------------------------------------------------
Ran 233 tests in 0.469s
View virtualenv.py
def relocateable_ve(ve_dir):
log.debug('Making virtualenv relocatable')
virtualenv.make_environment_relocatable(ve_dir)
# Make activate relocatable, using approach taken in
# https://github.com/pypa/virtualenv/pull/236
activate = []
with open(os.path.join(ve_dir, 'bin', 'activate')) as f:
for line in f:
line = line.strip()
View pycon-wifi.py
#!/usr/bin/env python
import argparse
import logging
import platform
import subprocess
import time
import requests
from requests.exceptions import ConnectionError, ReadTimeout
View dpmt renames
# final_package, package, min_rev, max_rev
('python-pysnmp4', 'pysnmp', None, 278),
('python-pysnmp4', 'pysnmp4', 279, 513),
('python-pysnmp4', 'python-pysnmp4', 514, None),
('genshi', 'markup', None, 1463),
('genshi', 'genshi', 1464, None),
# Not actually a rename, but python-cherrypy is gone
('cherrypy3', 'python-cherrypy', None, 1646),
('cherrypy3', 'cherrypy3', 1647, None),
('python-decorator', 'decorator', None, 2111),
@stefanor
stefanor / sh.vim
Created Oct 24, 2012
vim sh filetype
View sh.vim
" Vim filetype plugin file
" Language: sh
" Maintainer: Dan Sharp <dwsharp at users dot sourceforge dot net>
" Last Changed: 20 Jan 2009
" URL: http://dwsharp.users.sourceforge.net/vim/ftplugin
if exists("b:did_ftplugin") | finish | endif
let b:did_ftplugin = 1
" Make sure the continuation lines below do not cause problems in
View turnip.abc
X:1
T:Lettuce Turnip the Beet
M:4/4
L:1/4
K:C
V:1
cAB2 | bBe2 | AGE2 | F2Ez ||
V:2 octave=-1
z4 | e3z | G3z | G3z ||
View memoization.py
#!/usr/bin/env python
def memoize(f):
def wrapped(self):
attr_name = '_memoized_%s' % f.func_name
if not hasattr(self, attr_name):
setattr(self, attr_name, f(self))
return getattr(self, attr_name)
return wrapped
View pypy_1.9+hg57779+dfsg-0~ppa1~ubuntu12.04_amd64.build
This file has been truncated, but you can view the full file.
sbuild (Debian sbuild) 0.63.2 (18 Aug 2012) on dvorak.kardiogramm.lan
╔══════════════════════════════════════════════════════════════════════════════╗
║ pypy 1.9+hg57779+dfsg-0~ppa1~ubuntu12.04 (amd64) 08 Oct 2012 11:02 ║
╚══════════════════════════════════════════════════════════════════════════════╝
Package: pypy
Version: 1.9+hg57779+dfsg-0~ppa1~ubuntu12.04
Source Version: 1.9+hg57779+dfsg-0~ppa1~ubuntu12.04
View pypy-contents.txt
pypy_1.9+hg57779+dfsg-0~ppa1~ubuntu12.04_amd64.deb
──────────────────────────────────────────────────
new debian package, version 2.0.
size 10355676 bytes: control archive=1679 bytes.
1227 bytes, 25 lines control
885 bytes, 12 lines md5sums
529 bytes, 33 lines * postinst #!/bin/sh
320 bytes, 27 lines * prerm #!/bin/sh
34 bytes, 1 lines triggers
View failure.log
Detected build compat level 3
╔═════════════════════════════════════════════════════════════════════════════╗
║ asyncserver 0.17 ║
╚═════════════════════════════════════════════════════════════════════════════╝
┌─────────────────────────────────────────────────────────────────────────────┐
│ Build deploy virtualenv │
└─────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────┐
│ Build app virtualenv │
└─────────────────────────────────────────────────────────────────────────────┘
You can’t perform that action at this time.