This file contains hidden or 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
from trytond.model import fields | |
from trytond.pool import PoolMeta | |
__all__ = ['Country'] | |
class Country(metaclass=PoolMeta): | |
__name__ = 'country.country' |
This file contains hidden or 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
0) Prepare a clean environment | |
python -m venv pyivenv | |
cd pyivenv | |
source ./bin/activate # Posix bash/zsh | |
.\Scripts\activate.bat # Windows cmd.exe | |
.\Scripts\Activate.ps1 # Windows PowerShell | |
pip install -U pip # upgrade pip |
This file contains hidden or 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
digraph G { | |
graph [rankdir="TB"]; | |
_ast_names [label="_ast_names", style="filled", fillcolor="#CCFFCCB2", fontcolor="#000000", group="1"]; | |
ModuleGraph___safe_import_hook [label="_safe_import_hook", style="filled", fillcolor="#99FF99B2", fontcolor="#000000", group="1"]; | |
ModuleGraph___determine_parent [label="_determine_parent", style="filled", fillcolor="#99FF99B2", fontcolor="#000000", group="1"]; | |
ModuleGraph___safe_import_module [label="_safe_import_module", style="filled", fillcolor="#99FF99B2", fontcolor="#000000", group="1"]; | |
ModuleGraph__add_module [label="add_module", style="filled", fillcolor="#99FF99B2", fontcolor="#000000", group="1"]; | |
ModuleGraph__findNode [label="findNode", style="filled", fillcolor="#99FF99B2", fontcolor="#000000", group="1"]; | |
ModuleGraph___load_package [label="_load_package", style="filled", fillcolor="#99FF99B2", fontcolor="#000000", group="1"]; | |
ModuleGraph___scan_bytecode [label="_scan_bytecode", style="filled", fillcolor="#99FF99B2", fontcolo |
This file contains hidden or 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
mkdir modulegraph | |
cd modulegraph/ | |
rm -rf * .hg* .git* | |
hg clone https://[email protected]/ronaldoussoren/modulegraph . | |
hg checkout modulegraph-0.12 | |
rm -rf .git* | |
git init . | |
git add .hg/hgrc | |
cat > .gitignore <<EOF |
This file contains hidden or 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 threading | |
import uuid | |
import time | |
import zmq | |
def sender(send_addr, receiver_port): | |
send_socket = ctx.socket(zmq.REQ) | |
address = "tcp://{addr}:{port}".format(addr=send_addr, port=receiver_port) |
This file contains hidden or 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
/bin | |
/lib | |
/lib64 | |
/include | |
build/ | |
dist/ | |
*.egg-info | |
*.py[co] |
This file contains hidden or 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
#!/usr/bin/python | |
""" | |
Filter all unchanged and all only-comment lines from a diff-output. | |
and be more terse. | |
""" | |
import sys | |
import re |