One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
# -*- coding: utf-8 -*- | |
import base64 | |
from items import EmailItem, EmailLabelItem | |
from loader import JSONItemLoader | |
from oauth2spider import OAuth2Spider | |
class GmailSpider(OAuth2Spider): | |
name = "gmail" |
import anyio | |
from contextlib import asynccontextmanager | |
class NotYet(RuntimeError): | |
pass | |
class ResultGatheringTaskgroup: | |
def __init__(self): | |
self.result = [] |
GOROOT_1_11_X64=/usr/local/go1.11 | |
ANDROID_HOME=/usr/local/lib/android/sdk | |
JAVA_HOME_11_X64=/usr/lib/jvm/zulu-11-azure-amd64 | |
ImageVersion=20190930.2 | |
LANG=C.UTF-8 | |
INVOCATION_ID=029524e610de4329ac57a8f3e8b21281 | |
JAVA_HOME_12_X64=/usr/lib/jvm/zulu-12-azure-amd64 | |
ANDROID_SDK_ROOT=/usr/local/lib/android/sdk | |
RUNNER_TOOL_CACHE=/opt/hostedtoolcache | |
JAVA_HOME=/usr/lib/jvm/zulu-11-azure-amd64 |
Why do we have unadorned string literals (native strings) in our codebase? | |
Doesn't that put us in danger of UnicodeError exceptions? | |
(1) Your codebase should be using text by default. At the borders, you convert | |
strings from other APIs into text and then use text throughout, only | |
converting to bytes (or native strings) when those types are needed for | |
another, outside API. | |
(2) On Python2, text can be safely combined with (or compared to) text[1]_. Bytes | |
can be combined with bytes. And ascii-only bytes can be combined with text. |
import cherrypy | |
import cherrypy_cors | |
class Coordinator: | |
@cherrypy.expose | |
def index(self): | |
return """<html> | |
<script type="text/javascript"> |
from pathlib import Path | |
import cherrypy | |
class Demo: | |
@cherrypy.expose | |
def index(self): | |
return Path('static/index.html').open(encoding='utf-8') |
import asyncio | |
import pathlib | |
import socket | |
import ssl | |
import pytest | |
import aiohttp | |
from aiohttp import web | |
from aiohttp.resolver import DefaultResolver |
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666", GROUP="plugdev", SYMLINK+="android%n" # Acer | |
SUBSYSTEM=="usb", ATTR{idVendor}=="1949", MODE="0664", GROUP="plugdev", SYMLINK+="android%n" # Amazon | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666", GROUP="plugdev", SYMLINK+="android%n" # ASUS | |
SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666", GROUP="plugdev", SYMLINK+="android%n" # Dell | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666", GROUP="plugdev", SYMLINK+="android%n" # Foxconn | |
SUBSYSTEM=="usb", ATTR{idVendor}=="04c5", MODE="0666", GROUP="plugdev", SYMLINK+="android%n" # Fujitsu | |
SUBSYSTEM=="usb", ATTR{idVendor}=="04c5", MODE="0666", GROUP="plugdev", SYMLINK+="android%n" # Fujitsu Toshiba | |
SUBSYSTEM=="usb", ATTR{idVendor}=="091e", MODE="0666", GROUP="plugdev", SYMLINK+="android%n" # Garmin-Asus | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0414", MODE="0666", GROUP="plugdev", SYMLINK+="android%n" # Gigabyte | |
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev", SYMLINK+="and |
import functools | |
import collections | |
import cherrypy | |
__metaclass__ = type # enable new-style classes by default | |
class SelectedMethod: |