This is my report for the work done in the first half of Decemeber as part of the 2015 Twisted Maintainer Fellowship program.
Important changes made in these weeks:
- The Git migration plan was sent for approval
- Port of the AMP protocol to Python 3.
#!/usr/bin/env python | |
# Copyright (c) Twisted Matrix Laboratories. | |
# See LICENSE for details. | |
""" | |
Setuptools installer for Twisted. | |
""" | |
import os |
# | |
# Run it on python 2.7 on Linux with | |
# 1) LANG=C python serverFromString-example.py | |
# 2) LANG=en_US.UTF-8 python serverFromString-example.py | |
from twisted.internet import reactor, endpoints | |
from twisted.internet.protocol import Protocol, Factory | |
class Echo(Protocol): |
PUT 200: OK | |
<HTML><DIV dir="ltr"><H2>Microsoft SharePoint Foundation Error.</H2> | |
<P> | |
<B>User:</B> please report details to this Web site's Webmaster. | |
<P> | |
<P> | |
<B>Webmaster:</B> please see the server's application event log for more details. | |
</P></DIV> |
Many thanks for your contribution. | |
Can you please define the scope of your patch or update the ticket's description? | |
DETAILS ABOUT WHY THE SCOPE IS NOT OK. | |
The patch needs at least one automated test to demonstrate the change and to prevent future regressions. | |
The patch also needs a NEWS file fragment (release notes fragment) | |
as described here http://twistedmatrix.com/trac/wiki/ReviewProcess#Newsfiles |
[ticket-workflow] | |
; no state change default action. | |
leave = * -> * | |
leave.default = 1 | |
leave.operations = leave_status | |
; allow closing from any state. | |
resolve = * -> closed | |
resolve.operations = set_resolution | |
resolve.permissions = TICKET_MODIFY |
#!/bin/sh | |
# | |
# This is free and unencumbered software released into the public domain. | |
# | |
# Created by Nils Kollandsrud and modified by Adi Roiban. | |
# | |
# Script for creating a new service account on OSX. | |
# It will create a dedicated group and username for the service account. | |
# usage: sh shellname.sh username |
twisted_create_branch () { | |
branch_name=$1 | |
git sb trunk | |
mkbranch $branch_name | |
git fetch origin | |
git pull origin trunk | |
git checkout -b $branch_name origin/$branch_name | |
} | |
$ pip install -e . | |
Obtaining file:///home/adi/chevah/twisted | |
Running setup.py (path:/home/adi/chevah/twisted/setup.py) egg_info for package from file:///home/adi/chevah/twisted | |
Requirement already satisfied (use --upgrade to upgrade): zope.interface>=3.6.0 in /usr/lib/python2.7/dist-packages (from Twisted==15.5.0) | |
Installing collected packages: Twisted | |
Running setup.py develop for Twisted | |
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c conftest.c -o conftest.o | |
building 'twisted.python._sendmsg' extension |
This is my report for the work done in the first half of Decemeber as part of the 2015 Twisted Maintainer Fellowship program.
Important changes made in these weeks:
# Backslash-escape errorCode. Python 3.5 can do this natively | |
# ("backslashescape") but Python 2.7 and Python 3.4 can't. | |
if _PY3: | |
errorCodeForMessage = "".join( | |
"\\x%2x" % c if c >= 0x80 else chr(c) | |
for c in errorCode) | |
else: | |
errorCodeForMessage = "".join( | |
"\\x%2x" % ord(c) if ord(c) >= 0x80 else c | |
for c in errorCode) |