Skip to content

Instantly share code, notes, and snippets.

View deronnax's full-sized avatar
🐍
python lover

Mathieu Dupuy deronnax

🐍
python lover
  • GitGuardian
  • Paris, France
  • 17:03 (UTC +01:00)
View GitHub Profile
Intro
H |----------------|----------------|x-x-------------|------------xx--|
T2|----------------|o-o-------------|----------------|oooo------------|
T3|----------------|o-o-----o-o-----|----------------|------oooo------|
S |o-o-------------|----------------|o-o-------------|----------------|
F |o-o-------------|--------o-o-----|----------------|----------------|
B |o-o-o---o---o---|o-o-o---o-o-o---|o-o-o---o---o---|----oo----oo--oo|
C |c-c-------------|----------------|
T2|----------------|o-o-------------|
[Intro]
H|x-x-x-x-x-x-x-x-|x-x-x-x-x-x-x-x-|x-x-x-x-x-x-x-x-|x-x-x-x-x-x-x-XX|
1e+a2e+a3e+a4e+a 1e+a2e+a3e+a4e+a 1e+a2e+a3e+a4e+a 1e+a2e+a3e+a4e+a
C|----------------|----------------|----------------|X-------X-------|
H|x-x-x-x-x-x-x-x-|x-x-x-x-x-x-x-x-|x-x-x-X-X-X-X-X-|--X-X-X---X-X-X-|
B|----------------|----------------|--------------o-|o-----o-o-----o-|
1e+a2e+a3e+a4e+a 1e+a2e+a3e+a4e+a 1e+a2e+a3e+a4e+a 1e+a2e+a3e+a4e+a
{
"url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347",
"id": 1,
"node_id": "MDExOlB1bGxSZXF1ZXN0MQ==",
"html_url": "https://github.com/octocat/Hello-World/pull/1347",
"diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff",
"patch_url": "https://github.com/octocat/Hello-World/pull/1347.patch",
"issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347",
"commits_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits",
"review_comments_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments",
#!/usr/bin/env python3
import argparse
from glob import glob
import os
from textwrap import fill
import regex
import polib
from tabulate import tabulate
import re
import time
reg = re.compile(r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]')
with open('requests/__init__.py', 'r') as fd:
t1 = time.time()
version = reg.search(fd.read()).group()
t2 = time.time()
print version