This document is obsolete, all the docs for porting are now at https://github.com/mitsuhiko/pocoo-sprint-18052013
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
import pytest | |
class BaseMeta(type): | |
@property | |
def pytestmark(self): | |
return ( | |
getattr(self, "_pytestmark", []) + | |
list(itertools.chain.from_iterable(getattr(x, "_pytestmark", []) for x in self.__mro__)) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Running Steam on arch rolling 64-bit | |
STEAM_RUNTIME is enabled automatically | |
Installing breakpad exception handler for appid(steam)/version(1411443970) | |
Installing breakpad exception handler for appid(steam)/version(1411443970) | |
Installing breakpad exception handler for appid(steamwebhelper)/version(20140922201705) | |
Installing breakpad exception handler for appid(steamwebhelper)/version(1411417025) | |
[1010/195919:ERROR:nss_util.cc(1018)] Failed to load NSS libraries. | |
Installing breakpad exception handler for appid(steamwebhelper)/version(20140922201705) | |
Installing breakpad exception handler for appid(steamwebhelper)/version(1411417025) | |
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id$ | |
# Maintainer: Angel Velasquez <angvp@archlinux.org> | |
# Maintainer: Felix Yan <felixonmars@archlinux.org> | |
# Contributor: Stéphane Gaudreault <stephane@archlinux.org> | |
# Contributor: Allan McRae <allan@archlinux.org> | |
# Contributor: Jason Chu <jason@archlinux.org> | |
pkgname=python | |
pkgver=3.6.4 | |
pkgrel=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime | |
def better_os(): | |
x = sublime.get_os() | |
if x: | |
return x.upper() | |
else: | |
return None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/werkzeug/testsuite/wrappers.py b/werkzeug/testsuite/wrappers.py | |
index 751880d..cc78030 100644 | |
--- a/werkzeug/testsuite/wrappers.py | |
+++ b/werkzeug/testsuite/wrappers.py | |
@@ -50,7 +50,8 @@ def request_demo_app(environ, start_response): | |
'form': request.form, | |
'form_as_list': list(request.form.lists()), | |
'environ': prepare_environ_pickle(request.environ), | |
- 'data': request.data | |
+ 'data': request.data, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@native_itermethods(['keys', 'values', 'items', 'foo']) | |
class AwsumDict(object): | |
def keys(self): # return iterator | |
def values(self): # return iterator | |
def items(self): # return iterator | |
def foo(self): # return iterator | |
d = AwsumDict() | |
## Python 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mitsuhiko/flask#637 | |
from flask import send_file, Flask, request | |
import datetime | |
app = Flask(__name__) | |
@app.route('/image/<file_id>') | |
def images(file_id): | |
f = open('lel.jpg') # some jpeg file in the same dir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exception sqlalchemy.exc.InvalidRequestError: InvalidRequestError("This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occuring prematurely) No column item.collection_path is configured on mapper Mapper|DBLine|line... (original cause: UnmappedColumnError: No column item.collection_path is configured on mapper Mapper|DBLine|line...) u'SELECT item.name AS item_name, item.tag AS item_tag, item.collection_path AS item_collection_path \\nFROM item, line \\nWHERE ? = line.item_name AND ? = line.item_collection_path ORDER BY line.timestamp' [immutabledict({})]",) in <bound method Collection.__del__ of <radicale.storage.database.Collection object at 0x7f24cdaf4690>> ignored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN:VCALENDAR | |
CALSCALE:GREGORIAN | |
PRODID:-//Apple Inc.//iOS 6.1.6//EN | |
VERSION:2.0 | |
BEGIN:VTODO | |
CREATED:20141207T173149Z | |
DTSTAMP:20141207T173206Z | |
LAST-MODIFIED:20141207T173151Z | |
SEQUENCE:0 | |
STATUS:NEEDS-ACTION |
NewerOlder