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/lazy_reload.py b/lazy_reload.py | |
index 566521e..1694775 100644 | |
--- a/lazy_reload.py | |
+++ b/lazy_reload.py | |
@@ -40,7 +40,10 @@ else: | |
modules_to_reload = {} | |
def is_submodule_name( name, root_name ): | |
- return (name + '.').startswith(root_name + '.') | |
+ try: |
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 -r 03f797ecd7ea Lib/_socket.py | |
--- a/Lib/_socket.py Thu Nov 12 13:47:41 2015 +1100 | |
+++ b/Lib/_socket.py Fri Nov 13 15:08:47 2015 -0700 | |
@@ -28,7 +28,8 @@ | |
from java.util import NoSuchElementException | |
from java.util.concurrent import ( | |
ArrayBlockingQueue, CopyOnWriteArrayList, CountDownLatch, LinkedBlockingQueue, | |
- RejectedExecutionException, ThreadFactory, TimeUnit) | |
+ ExecutionException, RejectedExecutionException, ThreadFactory, | |
+ TimeoutException, TimeUnit) |
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
apply plugin: 'java' | |
version = '0.1' | |
jar { } | |
repositories { | |
mavenCentral() | |
} | |
dependencies { |
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
plugins { | |
id 'java' | |
id 'com.github.johnrengelman.shadow' version '1.2.2' | |
} | |
apply plugin: 'idea' | |
apply plugin: 'scala' | |
apply plugin: 'com.github.johnrengelman.shadow' | |
version = 0.1 |
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
# Support blind trust of all certificates; useful for testing | |
import sys | |
from array import array | |
from javax.net.ssl import SSLContext, TrustManager, X509TrustManager | |
from java.net import URL | |
__all__ = ["trust_all_certificates"] |
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
test_socket | |
testClosedSocket (test.test_socket.TestJythonTCPExceptions) ... 2015-03-05 11:34:33,260 MainThread DEBUG setsockopt Setting option 128 to 1 <_realsocket at 0x2 type=unknown open_count=1 channel=None timeout=None> | |
ok | |
testConnectionRefused (test.test_socket.TestJythonTCPExceptions) ... 2015-03-05 11:34:33,276 MainThread DEBUG setsockopt Setting option 128 to 1 <_realsocket at 0x3 type=unknown open_count=1 channel=None timeout=None> | |
2015-03-05 11:34:33,276 MainThread DEBUG _connect Begin connection to ('localhost', 50100) <_realsocket at 0x3 type=unknown open_count=1 channel=None timeout=None> | |
2015-03-05 11:34:33,286 MainThread DEBUG _get_jsockaddr Address localhost/127.0.0.1:50100 for ('localhost', 50100) * | |
2015-03-05 11:34:33,288 MainThread DEBUG __init__ Initializing inbound handler <_realsocket at 0x3 type=client open_count=1 channel=None timeout=None> | |
2015-03-05 11:34:33,290 MainThread DEBUG _connect Connect 0.0.0.0/0.0.0.0:0 to localhost/127.0.0.1:50100 <_realsocket at 0x3 type=client open_coun |
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 datetime | |
import string | |
import random | |
import json | |
import sys | |
import avro.schema | |
from avro.datafile import DataFileReader, DataFileWriter | |
from avro.io import DatumReader, DatumWriter | |
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 -r 9c81bac53d7a Lib/threading.py | |
--- a/Lib/threading.py Tue Jan 20 22:06:52 2015 +0000 | |
+++ b/Lib/threading.py Wed Jan 21 14:29:01 2015 -0700 | |
@@ -274,6 +274,7 @@ | |
class _MainThread(Thread): | |
def __init__(self): | |
+ print "main thread=%r" % (java.lang.Thread.currentThread().name,) | |
Thread.__init__(self, name="MainThread") | |
import atexit |
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 org.python.compiler.*; | |
import org.python.core.*; | |
@APIVersion(36) | |
@MTime(1421279812000L) | |
@Filename("fact.py") | |
public class fact$py extends PyFunctionTable implements PyRunnable | |
{ | |
static fact$py self; | |
static final PyCode f$0; |
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
$ jpip install pytest | |
Version: ImageMagick 6.8.9-8 Q16 x86_64 2014-10-23 http://www.imagemagick.org | |
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC | |
Features: DPC Modules | |
Delegates: bzlib freetype jng jpeg ltdl lzma png xml zlib | |
Usage: import [options ...] [ file ] | |
Image Settings: | |
-adjoin join images into a single multi-image file |