diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/src/wormhole/blocking/transcribe.py b/src/wormhole/blocking/transcribe.py index <HASH>..<HASH> 100644 --- a/src/wormhole/blocking/transcribe.py +++ b/src/wormhole/blocking/transcribe.py @@ -5,7 +5,7 @@ from spake2 import SPAKE2_A, SPAKE2_B from nacl.secret import SecretBox from nacl.exceptions import Cry...
require caller to provide relay, no more default Applications should feel free to pass wormhole.const.RENDEZVOUS_RELAY here, but I figure it should be clear that you're using a public service that's hosted *somewhere* external.
py
diff --git a/bettercache/utils.py b/bettercache/utils.py index <HASH>..<HASH> 100644 --- a/bettercache/utils.py +++ b/bettercache/utils.py @@ -5,7 +5,7 @@ from django.conf import settings from django.core.cache import cache from django.utils.cache import get_cache_key, learn_cache_key, cc_delim_re from django.utils....
[CMSPERF-<I>] added a last modified header
py
diff --git a/quilt/utils.py b/quilt/utils.py index <HASH>..<HASH> 100644 --- a/quilt/utils.py +++ b/quilt/utils.py @@ -93,7 +93,7 @@ class Directory(object): """ Creates the directory and all its parent directories if it does not exist yet """ - if not os.path.exists(self.dirname): + ...
Avoid IOError while creating directory Only create directory if dirname is set and the directory doesn't exist yet.
py
diff --git a/bzr_exporter.py b/bzr_exporter.py index <HASH>..<HASH> 100755 --- a/bzr_exporter.py +++ b/bzr_exporter.py @@ -130,10 +130,12 @@ class BzrFastExporter(object): # Get the primary parent if nparents == 0: - # This is a parentless commit. We need to create a new branch - ...
fix branch of first commit to not be refs/heads/tmp
py
diff --git a/salt/output.py b/salt/output.py index <HASH>..<HASH> 100644 --- a/salt/output.py +++ b/salt/output.py @@ -149,7 +149,6 @@ class JSONOutputter(Outputter): JSON output. ''' supports = 'json' - enabled = JSON def __call__(self, data, **kwargs): if hasattr(self, 'indent'):
removed reference to JSON from salt/output.py
py
diff --git a/master/buildbot/test/util/integration.py b/master/buildbot/test/util/integration.py index <HASH>..<HASH> 100644 --- a/master/buildbot/test/util/integration.py +++ b/master/buildbot/test/util/integration.py @@ -77,6 +77,8 @@ def getMaster(case, reactor, config_dict): master.db.setup = lambda: None ...
test: Shutdown the DB thread pool on master shutdown
py
diff --git a/resolwe/storage/migrations/0004_calculate_hashes.py b/resolwe/storage/migrations/0004_calculate_hashes.py index <HASH>..<HASH> 100644 --- a/resolwe/storage/migrations/0004_calculate_hashes.py +++ b/resolwe/storage/migrations/0004_calculate_hashes.py @@ -24,7 +24,7 @@ def calculate_hashes(apps, schema_edito...
Reduce number of workers when calculating hashes
py
diff --git a/rocket/futures.py b/rocket/futures.py index <HASH>..<HASH> 100644 --- a/rocket/futures.py +++ b/rocket/futures.py @@ -99,3 +99,14 @@ class WSGIExecutor(ThreadPoolExecutor): return f else: return False + +class FuturesMiddleware(object): + "Futures middleware that adds ...
Added a middleware class to futures.py
py
diff --git a/testing/test_pdb.py b/testing/test_pdb.py index <HASH>..<HASH> 100644 --- a/testing/test_pdb.py +++ b/testing/test_pdb.py @@ -780,7 +780,7 @@ def test_bad_source(): -> return 42 5 frames hidden .* # source 42 -\*\* Error: .* is not a module, class, method, function, traceback, frame, or code object \...
tests: fix test_bad_source for py<I> It displays a slightly different error: > Error: module, class, method, function, traceback, frame, or code > object was expected, got int
py
diff --git a/proton-j/proton/src/main/scripts/proton.py b/proton-j/proton/src/main/scripts/proton.py index <HASH>..<HASH> 100644 --- a/proton-j/proton/src/main/scripts/proton.py +++ b/proton-j/proton/src/main/scripts/proton.py @@ -511,7 +511,8 @@ class Timeout(Exception): class Messenger(object): def __init__(sel...
PROTON-<I>: There have been a couple reports of intermittent issues with the messenger tests; disabling until they are resolved git-svn-id: <URL>
py
diff --git a/ircbot.py b/ircbot.py index <HASH>..<HASH> 100644 --- a/ircbot.py +++ b/ircbot.py @@ -247,6 +247,11 @@ class SingleServerIRCBot(SimpleIRCClient): SimpleIRCClient.start(self) +class NoDefault(object): + """ + An object, distinguishable from None + """ + class IRCDict: """A dictio...
Added pop support for IRCDict
py
diff --git a/tests/test_token_generation.py b/tests/test_token_generation.py index <HASH>..<HASH> 100644 --- a/tests/test_token_generation.py +++ b/tests/test_token_generation.py @@ -64,6 +64,12 @@ class OpenTokTokenGenerationTest(unittest.TestCase): assert token_decoder(token)[u('connection_data')] == data ...
Add test for token with empty data connection
py
diff --git a/hepdata_converter/version.py b/hepdata_converter/version.py index <HASH>..<HASH> 100644 --- a/hepdata_converter/version.py +++ b/hepdata_converter/version.py @@ -1,3 +1,3 @@ # this file ideally should only contain __version__ declaration, as anything else # may break setup.py and PyPI uploads -__version_...
global: version bump to <I>
py
diff --git a/test/functional/sys/test_folder.py b/test/functional/sys/test_folder.py index <HASH>..<HASH> 100644 --- a/test/functional/sys/test_folder.py +++ b/test/functional/sys/test_folder.py @@ -19,10 +19,6 @@ from requests import HTTPError TESTDESCRIPTION = "TESTDESCRIPTION" -def delete_resource(resource): - ...
Removed unused method in test_folder.py Issues: Addresses comment in PR #<I>. Problem: Unused function definition in the functional test for the Folder object. Analysis: * Remove the unused method. Tests: * Reran the functional tests, all pass
py
diff --git a/synapse/tests/test_cortex.py b/synapse/tests/test_cortex.py index <HASH>..<HASH> 100644 --- a/synapse/tests/test_cortex.py +++ b/synapse/tests/test_cortex.py @@ -3359,6 +3359,8 @@ class CortexTest(SynTest): othercore.setConfOpt('cellpool:conf', {'auth': axonauth, 'host': neurhost}) ...
Show that the axon is not ready until the cellpool is set up and the axon name is set
py
diff --git a/tests/test_jks.py b/tests/test_jks.py index <HASH>..<HASH> 100644 --- a/tests/test_jks.py +++ b/tests/test_jks.py @@ -264,7 +264,7 @@ class BksOnlyTests(AbstractTest): """Checks that apply to BKS entries of any type""" self.assertEqual(entry.store_type, store_type) self.assertTru...
changed isinstance(int) to isinstance(int, long) to fix test error on <I> bit python
py
diff --git a/mautrix/util/async_db/aiosqlite.py b/mautrix/util/async_db/aiosqlite.py index <HASH>..<HASH> 100644 --- a/mautrix/util/async_db/aiosqlite.py +++ b/mautrix/util/async_db/aiosqlite.py @@ -48,6 +48,10 @@ class TxnConnection(aiosqlite.Connection): async def execute(self, query: str, *args: Any, timeout: f...
Add wrapper for executemany in TxnConnection
py
diff --git a/source/rafcon/gui/utils/splash_screen.py b/source/rafcon/gui/utils/splash_screen.py index <HASH>..<HASH> 100644 --- a/source/rafcon/gui/utils/splash_screen.py +++ b/source/rafcon/gui/utils/splash_screen.py @@ -57,6 +57,7 @@ class SplashScreen(Gtk.Window): self.show_all() def set_text(se...
feat(splash_screen): log all text messages
py
diff --git a/hmmlearn/tests/test_gaussian_hmm.py b/hmmlearn/tests/test_gaussian_hmm.py index <HASH>..<HASH> 100644 --- a/hmmlearn/tests/test_gaussian_hmm.py +++ b/hmmlearn/tests/test_gaussian_hmm.py @@ -221,9 +221,12 @@ class TestGaussianHMMWithDiagonalCovars(GaussianHMMTestMixin, TestCase): assert np.allclose...
TST make sure posteriors are properly normalized in the left-right scenario
py
diff --git a/codespell.py b/codespell.py index <HASH>..<HASH> 100755 --- a/codespell.py +++ b/codespell.py @@ -157,11 +157,11 @@ def parse_file(filename, colors): if options.write_changes and misspellings[lword].fix: changed = True lines[i - 1] = line.replace(w...
replace one word at a time Since we already iterate over all words, there's no need to substitute all the words at once.
py
diff --git a/txaio/aio.py b/txaio/aio.py index <HASH>..<HASH> 100644 --- a/txaio/aio.py +++ b/txaio/aio.py @@ -54,12 +54,6 @@ except ImportError: from trollius import iscoroutine from trollius import Future - class PrintHandler(logging.Handler): - def emit(self, record): - print(record)...
removed unnecessary logging handlers (#<I>)
py
diff --git a/upoints/__init__.py b/upoints/__init__.py index <HASH>..<HASH> 100644 --- a/upoints/__init__.py +++ b/upoints/__init__.py @@ -71,5 +71,6 @@ from upoints import (baken, cellid, cities, geonames, gpx, kml, nmea, osm, point, trigpoints, tzdata, utils, weather_stations, ...
[QA] __all__ should be strings not objects
py
diff --git a/mbed_cloud/development.py b/mbed_cloud/development.py index <HASH>..<HASH> 100644 --- a/mbed_cloud/development.py +++ b/mbed_cloud/development.py @@ -59,8 +59,8 @@ class DevelopmentAPI(BaseAPI): return None @catch_exceptions(ApiException) - def revoke_certificate(self): - """Revok...
Ensure consistent naming in development module
py
diff --git a/peppy/const.py b/peppy/const.py index <HASH>..<HASH> 100644 --- a/peppy/const.py +++ b/peppy/const.py @@ -30,7 +30,8 @@ REQUIRED_INPUTS_ATTR_NAME = "required_inputs_attr" ALL_INPUTS_ATTR_NAME = "all_inputs_attr" SAMPLE_CONSTANTS = ["ALL_INPUTS_ATTR_NAME", "ASSAY_KEY", "DATA_SOURCE_COLNAME", ...
subanns key proper subgrouping membership for export
py
diff --git a/bookstore/clone.py b/bookstore/clone.py index <HASH>..<HASH> 100644 --- a/bookstore/clone.py +++ b/bookstore/clone.py @@ -84,7 +84,7 @@ class BookstoreCloneHandler(IPythonHandler): class BookstoreCloneAPIHandler(APIHandler): """Handle notebook clone from storage. - Provides API handling for ``PO...
Update bookstore/clone.py
py
diff --git a/plaso/storage/writer.py b/plaso/storage/writer.py index <HASH>..<HASH> 100644 --- a/plaso/storage/writer.py +++ b/plaso/storage/writer.py @@ -106,8 +106,15 @@ class StorageWriter(reader.StorageReader): if len(existing_event_tags) == 1: event_tag = existing_event_tags[0] + if len(se...
Changes to storage writer for caching existing event tag (#<I>)
py
diff --git a/h2o-java-rest-bindings/bin/generate_java_bindings.py b/h2o-java-rest-bindings/bin/generate_java_bindings.py index <HASH>..<HASH> 100644 --- a/h2o-java-rest-bindings/bin/generate_java_bindings.py +++ b/h2o-java-rest-bindings/bin/generate_java_bindings.py @@ -188,6 +188,7 @@ def generate_retrofit_proxies(end...
PUBDEV-<I>: fix paths that contain \ in REST API proxy classes using Retrofit.
py
diff --git a/src/iota/crypto/__init__.py b/src/iota/crypto/__init__.py index <HASH>..<HASH> 100644 --- a/src/iota/crypto/__init__.py +++ b/src/iota/crypto/__init__.py @@ -6,6 +6,7 @@ from __future__ import absolute_import, division, print_function, \ # Load curl library. # If a compiled c extension is available, we w...
Added reference link for PyOTA-CCurl.
py
diff --git a/hypermap/aggregator/solr.py b/hypermap/aggregator/solr.py index <HASH>..<HASH> 100644 --- a/hypermap/aggregator/solr.py +++ b/hypermap/aggregator/solr.py @@ -136,8 +136,8 @@ class SolrHypermap(object): solr_record['MaxY'] = maxY solr_record['Area'] = area ...
Reverting last 2 commits, this format is better, and I believe is not breaking stuff
py
diff --git a/paml/parse.py b/paml/parse.py index <HASH>..<HASH> 100644 --- a/paml/parse.py +++ b/paml/parse.py @@ -23,9 +23,6 @@ class Parser(object): def parse(self, source): for raw_line in source: - if raw_line.startswith('!'): - self.add_node(nodes.Content(raw_line[1:])...
Remove the old escape character. May put this back in later though.
py
diff --git a/green/cmdline.py b/green/cmdline.py index <HASH>..<HASH> 100644 --- a/green/cmdline.py +++ b/green/cmdline.py @@ -160,9 +160,9 @@ def main(): "Fatal: The 'coverage' module is not installed. Have you " "run 'pip install coverage'???") sys.exit(3) - ...
Fixed the refactored omission code. Added a debug statement to indicate when a suite was not successfully loaded.
py
diff --git a/examples/resnet/resnet_main.py b/examples/resnet/resnet_main.py index <HASH>..<HASH> 100644 --- a/examples/resnet/resnet_main.py +++ b/examples/resnet/resnet_main.py @@ -107,7 +107,7 @@ class ResNetTrainActor(object): with tf.device("/gpu:0" if num_gpus > 0 else "/cpu:0"): # Build the...
Correctly setting the input to Train (#<I>) In the ResNetTrainActor class, the data are now exactly build using the Train flag for the cifar_input script.
py
diff --git a/packages/vaex-astro/vaex/astro/transformations.py b/packages/vaex-astro/vaex/astro/transformations.py index <HASH>..<HASH> 100644 --- a/packages/vaex-astro/vaex/astro/transformations.py +++ b/packages/vaex-astro/vaex/astro/transformations.py @@ -5,7 +5,7 @@ import math def patch(f): '''Adds method f ...
astro: add astro function as hidden functions for backward compatibility
py
diff --git a/nudibranch/views.py b/nudibranch/views.py index <HASH>..<HASH> 100644 --- a/nudibranch/views.py +++ b/nudibranch/views.py @@ -121,7 +121,7 @@ def class_edit(request): def class_join_list(request): # get all the classes that the given user is not in, and let the # user optionally join them - a...
Don't allow joining of locked classes.
py
diff --git a/src/foremast/consts.py b/src/foremast/consts.py index <HASH>..<HASH> 100644 --- a/src/foremast/consts.py +++ b/src/foremast/consts.py @@ -23,7 +23,7 @@ def find_config(): cfg_file = config.read(config_locations) if not cfg_file: - LOG.error('No config found in the following locations: {0...
fix: Locations was move to a local variable
py
diff --git a/hiddenlayer/__init__.py b/hiddenlayer/__init__.py index <HASH>..<HASH> 100644 --- a/hiddenlayer/__init__.py +++ b/hiddenlayer/__init__.py @@ -4,3 +4,4 @@ from .history import History from .canvas import show_images from .canvas import Canvas from .utils import write +from . import transforms
Use hiddenlayer.transforms without explicit import This allows importing hiddenlayer and then being able to use hiddenlayer.transforms.SomeTransform without having to import hiddenlayer.transforms explicity.
py
diff --git a/PyFunceble.py b/PyFunceble.py index <HASH>..<HASH> 100755 --- a/PyFunceble.py +++ b/PyFunceble.py @@ -1794,6 +1794,7 @@ class Referer(object): 'bd', 'bf', 'bh', + 'bl', 'bs', 'cy', 'eg', @@ -2665,7 +2666,7 @@ if __name...
Introduction of `bl` into the list of ignored extensions cf: No whois server.
py
diff --git a/raiden_contracts/deploy/__main__.py b/raiden_contracts/deploy/__main__.py index <HASH>..<HASH> 100644 --- a/raiden_contracts/deploy/__main__.py +++ b/raiden_contracts/deploy/__main__.py @@ -188,6 +188,11 @@ def main(): @main.command() @common_options +@click.option( + '--save-info', + default=Tru...
Add option to not store deployment info in deploy script
py
diff --git a/launch_control/utils/call_helper.py b/launch_control/utils/call_helper.py index <HASH>..<HASH> 100644 --- a/launch_control/utils/call_helper.py +++ b/launch_control/utils/call_helper.py @@ -314,9 +314,11 @@ class DummyValues(object): """ def __init__(self, dummy_cls): self._ctor_args = {...
Add support for using properties in Dummy classes
py
diff --git a/salt/modules/lxc.py b/salt/modules/lxc.py index <HASH>..<HASH> 100644 --- a/salt/modules/lxc.py +++ b/salt/modules/lxc.py @@ -840,7 +840,8 @@ def _network_conf(conf_tuples=None, **kwargs): # (lxc.network.ipv4.gateway: auto) if ( distutils.version.LooseVersion(version()) <= '1.0.7' and - ...
LXC gateway provisioned only when IP is provided The directive `lxc.network.ipv4.gateway = auto` should not be added to an LXC configuration file when no IP address is specified. It results in the following error: ``` lxc-start <I> ERROR lxc_conf - conf.c:setup_netdev:<I> - Cannot add ipv4 gateway for eth0 whe...
py
diff --git a/tests/test_eegtopo/test_warp.py b/tests/test_eegtopo/test_warp.py index <HASH>..<HASH> 100644 --- a/tests/test_eegtopo/test_warp.py +++ b/tests/test_eegtopo/test_warp.py @@ -50,4 +50,4 @@ class TestWarpLocations(unittest.TestCase): assert_allclose(warp_locations(eeglocs * scale), eeglocs, atol=1e-...
Tolerance was a bit low
py
diff --git a/gssapi/names.py b/gssapi/names.py index <HASH>..<HASH> 100644 --- a/gssapi/names.py +++ b/gssapi/names.py @@ -61,8 +61,9 @@ class Name(object): c_str_name = ffi.new('char[]', name) name_buffer[0].value = c_str_name elif isinstance(name, six.string_types): - nam...
Fix a possible bug with variable length character encoding
py
diff --git a/visidata/shell.py b/visidata/shell.py index <HASH>..<HASH> 100644 --- a/visidata/shell.py +++ b/visidata/shell.py @@ -113,7 +113,7 @@ class DeferredSaveSheet(Sheet): confirm('really %s? ' % cstr) - self.commit(self.addedRows, changes, self.toBeDeleted) + self.commit(dict(self.add...
[DirSheet] commit is async; clear()s happened before it completed. Closes #<I>
py
diff --git a/tests/test_datatypes.py b/tests/test_datatypes.py index <HASH>..<HASH> 100644 --- a/tests/test_datatypes.py +++ b/tests/test_datatypes.py @@ -106,7 +106,7 @@ class TestNumeric(TypeMixin): data = [ (decimal.Decimal('100'),), (decimal.Decimal('-1000'),), - (decimal.Decimal('2103...
Test with dscale a fraction of nbase digit
py
diff --git a/examples/02-plot/topo-map.py b/examples/02-plot/topo-map.py index <HASH>..<HASH> 100644 --- a/examples/02-plot/topo-map.py +++ b/examples/02-plot/topo-map.py @@ -3,7 +3,7 @@ Topographic Map ~~~~~~~~~~~~~~~ This is very similar to the :ref:`ref_texture_example` example except it is -focused on plotting ...
Update topo-map.py (#<I>) Topography typo
py
diff --git a/buildozer/targets/android.py b/buildozer/targets/android.py index <HASH>..<HASH> 100644 --- a/buildozer/targets/android.py +++ b/buildozer/targets/android.py @@ -535,7 +535,7 @@ class TargetAndroid(Target): options = "--user" if "VIRTUAL_ENV" in os.environ or "CONDA_PREFIX" in os.environ:...
Fixes hardcoded pip version Uses default Python executable so correct version of pip gets picked up dynamically
py
diff --git a/banner/models.py b/banner/models.py index <HASH>..<HASH> 100644 --- a/banner/models.py +++ b/banner/models.py @@ -67,8 +67,11 @@ by Google, eg. /1234/travel. Used to track clicks.""" # http://support.google.com/dfp_sb/bin/answer.py?hl=en&answer=1651549 # tracking pixel section. #...
Do not make call to GA if DFP url not set
py
diff --git a/riak/transports/http/connection.py b/riak/transports/http/connection.py index <HASH>..<HASH> 100644 --- a/riak/transports/http/connection.py +++ b/riak/transports/http/connection.py @@ -35,7 +35,7 @@ class RiakHttpConnection(object): 'multipart/mixed, application/json, */*;q=0.5...
Make sure a buffer is added to socket file object
py
diff --git a/jackal/scripts/nmap.py b/jackal/scripts/nmap.py index <HASH>..<HASH> 100755 --- a/jackal/scripts/nmap.py +++ b/jackal/scripts/nmap.py @@ -46,6 +46,7 @@ def import_nmap(result, tag, check_function=all_hosts, import_services=False): imported_hosts += 1 host = host_search.id_to_objec...
Tags will be added to hosts found by nmap discover.
py
diff --git a/phy/traces/spike_detect.py b/phy/traces/spike_detect.py index <HASH>..<HASH> 100644 --- a/phy/traces/spike_detect.py +++ b/phy/traces/spike_detect.py @@ -25,6 +25,16 @@ logger = logging.getLogger(__name__) # SpikeDetector #------------------------------------------------------------------------------ +...
Fix bug: concatenate spike samples according to the chunks
py
diff --git a/test/test_icaldownload.py b/test/test_icaldownload.py index <HASH>..<HASH> 100644 --- a/test/test_icaldownload.py +++ b/test/test_icaldownload.py @@ -70,6 +70,10 @@ DTSTART:19180331T020000 self.assertEqual(expected, content, "content form iCal file, google format") def test_read_only_direct...
Running test in tmp dir to prevent permission issues
py
diff --git a/src/passa/internals/dependencies.py b/src/passa/internals/dependencies.py index <HASH>..<HASH> 100644 --- a/src/passa/internals/dependencies.py +++ b/src/passa/internals/dependencies.py @@ -153,8 +153,7 @@ def _get_dependencies_from_json(ireq, sources): if dependencies is not None: ...
Don't spit out error for None return
py
diff --git a/ambry/library/warehouse.py b/ambry/library/warehouse.py index <HASH>..<HASH> 100644 --- a/ambry/library/warehouse.py +++ b/ambry/library/warehouse.py @@ -812,16 +812,12 @@ def _get_table_names(statement): statement (sqlparse.sql.Statement): parsed by sqlparse sql statement. Returns: - ...
Redundant code removed. #<I>.
py
diff --git a/pyeda/table.py b/pyeda/table.py index <HASH>..<HASH> 100644 --- a/pyeda/table.py +++ b/pyeda/table.py @@ -77,6 +77,9 @@ def truthtable2expr(tt, conj=False): class PCData(object): + + _NEG = {0: 0, 1: 2, 2: 1, 3: 3} + def __init__(self, outputs): data = array.array('L') width ...
Simplify the PCData.__neg__ method
py
diff --git a/ppb/assets.py b/ppb/assets.py index <HASH>..<HASH> 100644 --- a/ppb/assets.py +++ b/ppb/assets.py @@ -115,11 +115,13 @@ class Rectangle(Shape): ) -def Square(r, g, b): +class Square(Rectangle): """ A constructor for :class:`~ppb.Rectangle` that produces a square image. """ - ...
Changes constructors to subclasses.
py
diff --git a/py/testdir_single_jvm/test_cols_enum_multi_import.py b/py/testdir_single_jvm/test_cols_enum_multi_import.py index <HASH>..<HASH> 100644 --- a/py/testdir_single_jvm/test_cols_enum_multi_import.py +++ b/py/testdir_single_jvm/test_cols_enum_multi_import.py @@ -62,7 +62,7 @@ class Basic(unittest.TestCase): ...
forgot to remove the hang at the end.
py
diff --git a/python/mxnet/gluon/utils.py b/python/mxnet/gluon/utils.py index <HASH>..<HASH> 100644 --- a/python/mxnet/gluon/utils.py +++ b/python/mxnet/gluon/utils.py @@ -28,12 +28,7 @@ import uuid import warnings import collections import weakref -try: - import requests -except ImportError: - class requests_f...
Remove requests_failed_to_import handling We already required requests package. If a user is missing it nevertheless, fail with a standard error message instead of some hard to understand error that requests_failed_to_import object does not have a get method.. Example <URL>
py
diff --git a/unyt/equivalencies.py b/unyt/equivalencies.py index <HASH>..<HASH> 100644 --- a/unyt/equivalencies.py +++ b/unyt/equivalencies.py @@ -506,6 +506,7 @@ class ElectromagneticSI(Equivalence): * statA -> A * statV -> V * statohm -> ohm + * Mx -> Wb Example ------- @@ -541,6 +542,7 ...
Add the magnetic flux stuff to the docstrings here
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ f.close() setup( name='django-cron', - version='0.2.5', + version='0.2.6', author='Sumit Chachra', author_email='chachra@tivix.com', url='http://github.com/tivix/django-cron',
bumped version to <I>
py
diff --git a/test/jpypetest/test_coverage.py b/test/jpypetest/test_coverage.py index <HASH>..<HASH> 100644 --- a/test/jpypetest/test_coverage.py +++ b/test/jpypetest/test_coverage.py @@ -16,7 +16,7 @@ class CoverageCase(common.JPypeTestCase): self.assertEqual(f, "foo") def testCygwin(self): - if ...
Bypass coverage on windows/cygwin
py
diff --git a/roca/detect.py b/roca/detect.py index <HASH>..<HASH> 100644 --- a/roca/detect.py +++ b/roca/detect.py @@ -523,6 +523,9 @@ class DlogFprint(object): :param modulus: :return: """ + if modulus <= 2: + return False + d = DlogFprint.discrete_log(modulus, sel...
#<I> fix - dlog detector on its own should not mark <=2 as positive
py
diff --git a/wdb/__init__.py b/wdb/__init__.py index <HASH>..<HASH> 100644 --- a/wdb/__init__.py +++ b/wdb/__init__.py @@ -349,7 +349,10 @@ class Wdb(object): wdbr.begun = False def trace(frame, event, arg): - wdbr.trace_dispatch(frame, event, arg) + rv = wdbr.trace_dispatc...
Stay with bdb behaviour for now and don't trace every thing
py
diff --git a/host/scan_ext_trigger.py b/host/scan_ext_trigger.py index <HASH>..<HASH> 100644 --- a/host/scan_ext_trigger.py +++ b/host/scan_ext_trigger.py @@ -149,7 +149,9 @@ class ExtTriggerScan(ScanBase): logging.info('Total amount of triggers collected: %d', self.readout_utils.get_trigger_number()) ...
ENH: readout data that could remain in memory
py
diff --git a/taxii2client/__init__.py b/taxii2client/__init__.py index <HASH>..<HASH> 100644 --- a/taxii2client/__init__.py +++ b/taxii2client/__init__.py @@ -1 +1,7 @@ """Python TAXII 2.1 APIs""" +from .version import __version__ + +DEFAULT_USER_AGENT = "taxii2-client/" + __version__ +MEDIA_TYPE_STIX_V20 = "applicati...
move media_types and user_agent to top of module
py
diff --git a/stdlib_list/_version.py b/stdlib_list/_version.py index <HASH>..<HASH> 100644 --- a/stdlib_list/_version.py +++ b/stdlib_list/_version.py @@ -1 +1 @@ -__version__ = "0.3.1" +__version__ = "0.3.2"
<I>: Altered file permissions. Should fix #2
py
diff --git a/test_elasticsearch/test_server/test_common.py b/test_elasticsearch/test_server/test_common.py index <HASH>..<HASH> 100644 --- a/test_elasticsearch/test_server/test_common.py +++ b/test_elasticsearch/test_server/test_common.py @@ -116,6 +116,10 @@ class YamlTestCase(ElasticTestCase): raise Skip...
Added implementation for catch: param
py
diff --git a/Lib/fontmake/font_project.py b/Lib/fontmake/font_project.py index <HASH>..<HASH> 100644 --- a/Lib/fontmake/font_project.py +++ b/Lib/fontmake/font_project.py @@ -50,7 +50,7 @@ PUBLIC_PREFIX = 'public.' GLYPHS_PREFIX = 'com.schriftgestaltung.' -class FontProject: +class FontProject(object): """Pro...
Make FontProject a new-style class
py
diff --git a/frontend/webapp/user_manager.py b/frontend/webapp/user_manager.py index <HASH>..<HASH> 100644 --- a/frontend/webapp/user_manager.py +++ b/frontend/webapp/user_manager.py @@ -206,8 +206,9 @@ class UserManager(object): if method.should_cache() is True: infos = method.get_users_i...
Do not try to update cache if user not found
py
diff --git a/tests/settings.py b/tests/settings.py index <HASH>..<HASH> 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -28,6 +28,25 @@ DATABASES = { } } +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [], + 'APP_DIRS': True, + ...
Add TEMPLATES variable to tests settings.py. To work on Django <I>
py
diff --git a/examples/comment/reply_to_media_comments.py b/examples/comment/reply_to_media_comments.py index <HASH>..<HASH> 100644 --- a/examples/comment/reply_to_media_comments.py +++ b/examples/comment/reply_to_media_comments.py @@ -54,8 +54,10 @@ for comment in tqdm(comments): commenter = comment['user']['usern...
fixed utf-8 errors fixed utf-8 errors for print comment['text'] in python versions < 3
py
diff --git a/pyang/translators/dsdl.py b/pyang/translators/dsdl.py index <HASH>..<HASH> 100644 --- a/pyang/translators/dsdl.py +++ b/pyang/translators/dsdl.py @@ -1147,8 +1147,7 @@ class HybridDSDLSchema(object): zom = SchemaNode("zeroOrMore", elem) choi = SchemaNode.choice(zom, occur=2) for ...
DSDL: Remove <optional> from <choice> representing bits.
py
diff --git a/cherrypy/wsgiserver/__init__.py b/cherrypy/wsgiserver/__init__.py index <HASH>..<HASH> 100644 --- a/cherrypy/wsgiserver/__init__.py +++ b/cherrypy/wsgiserver/__init__.py @@ -438,10 +438,10 @@ class HTTPRequest(object): environ[envname] = v ct = environ.pop("HTTP_CONTENT_TYPE...
It'd be nice to allow applications to know whether Content-Type and Content-Length were provided or just empty.
py
diff --git a/pubsub/google/cloud/pubsub_v1/subscriber/_helper_threads.py b/pubsub/google/cloud/pubsub_v1/subscriber/_helper_threads.py index <HASH>..<HASH> 100644 --- a/pubsub/google/cloud/pubsub_v1/subscriber/_helper_threads.py +++ b/pubsub/google/cloud/pubsub_v1/subscriber/_helper_threads.py @@ -47,15 +47,13 @@ class...
Removing unused "extra" arguments in Pub/Sub helper thread start. (#<I>)
py
diff --git a/salt/grains/core.py b/salt/grains/core.py index <HASH>..<HASH> 100644 --- a/salt/grains/core.py +++ b/salt/grains/core.py @@ -171,9 +171,6 @@ def os_data(): grains['os'] = 'Arch' elif os.path.isfile('/etc/debian_version'): grains['os'] = 'Debian' - elif os.path.isf...
Looking for /etc/gentoo-version is not necessary
py
diff --git a/wfcli.py b/wfcli.py index <HASH>..<HASH> 100644 --- a/wfcli.py +++ b/wfcli.py @@ -14,11 +14,11 @@ class WebFactionAPI(): self.server = xmlrpc.client.ServerProxy('https://api.webfaction.com/') self.session_id = self.account = None - def connect(self): + def connect(self, machine_na...
Automating webfaction websites. api v2 are still not working
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -4,11 +4,12 @@ from setuptools import setup, find_packages setup( name='django-disqus', - version='0.1', + version='0.1dev', description='DISQUS commands for Django', author='Arthur Koziel', author...
small modifications to metadata in setup.py
py
diff --git a/adafruit_bus_device/i2c_device.py b/adafruit_bus_device/i2c_device.py index <HASH>..<HASH> 100644 --- a/adafruit_bus_device/i2c_device.py +++ b/adafruit_bus_device/i2c_device.py @@ -177,6 +177,6 @@ class I2CDevice: result = bytearray(1) self.i2c.readfrom_into(self.device_a...
Added "pylint: disable=raise-missing-from" to line <I> to supress Pylint warning.
py
diff --git a/devassistant/assistants/python.py b/devassistant/assistants/python.py index <HASH>..<HASH> 100644 --- a/devassistant/assistants/python.py +++ b/devassistant/assistants/python.py @@ -63,3 +63,22 @@ class FlaskAssistant(PythonAssistant): if path_exists: errors.append(path_exists) ...
Packages installation for FlaskAssistant
py
diff --git a/src/python/dxpy/utils/describe.py b/src/python/dxpy/utils/describe.py index <HASH>..<HASH> 100644 --- a/src/python/dxpy/utils/describe.py +++ b/src/python/dxpy/utils/describe.py @@ -588,9 +588,8 @@ def print_globalworkflow_desc(desc, verbose=False): print_field("Created", render_timestamp(desc['create...
DEVEX-<I> Add delete to dx describe global workflow (#<I>)
py
diff --git a/patroni/version.py b/patroni/version.py index <HASH>..<HASH> 100644 --- a/patroni/version.py +++ b/patroni/version.py @@ -1 +1 @@ -__version__ = '1.3.4' +__version__ = '1.3.5'
Bump verions to <I>
py
diff --git a/spockbot/plugins/core/auth.py b/spockbot/plugins/core/auth.py index <HASH>..<HASH> 100644 --- a/spockbot/plugins/core/auth.py +++ b/spockbot/plugins/core/auth.py @@ -48,7 +48,7 @@ class AuthCore(object): username = property(get_username, set_username) def set_password(self, password): - ...
AuthCore does not bitch anymore about setting an empty password
py
diff --git a/drivers/java/convert_tests.py b/drivers/java/convert_tests.py index <HASH>..<HASH> 100755 --- a/drivers/java/convert_tests.py +++ b/drivers/java/convert_tests.py @@ -260,9 +260,12 @@ def escape_string(s, out): # byte to use \x instead of \u . Java doesn't accept \x so # we have to...
re-escape double quotes. Whoops. Broke this when I fixed \u escapes
py
diff --git a/salt/cli/__init__.py b/salt/cli/__init__.py index <HASH>..<HASH> 100644 --- a/salt/cli/__init__.py +++ b/salt/cli/__init__.py @@ -446,10 +446,19 @@ class SaltRun(object): ''' parser = optparse.OptionParser() + parser.add_option('-c', + '--config', + ...
Add config to the options on the salt runner
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -17,8 +17,12 @@ from setuptools import setup, Extension import glob -import numpy import sys +try: + import numpy + numpy_include = numpy.get_include() +except ImportError: + numpy_include = None bp_library = ...
Make bootstrapping installation without numpy work
py
diff --git a/airflow/contrib/operators/druid_operator.py b/airflow/contrib/operators/druid_operator.py index <HASH>..<HASH> 100644 --- a/airflow/contrib/operators/druid_operator.py +++ b/airflow/contrib/operators/druid_operator.py @@ -34,10 +34,12 @@ class DruidOperator(BaseOperator): self, js...
[AIRFLOW-<I>] Missing intervals DruidOperator The DruidOperator allows you to template the intervals field which is important when you are doing backfills with Druid. This field was missing in the constructor and Airflow threw a warning Closes #<I> from Fokko/patch-1
py
diff --git a/ropetest/advanced_oi_test.py b/ropetest/advanced_oi_test.py index <HASH>..<HASH> 100644 --- a/ropetest/advanced_oi_test.py +++ b/ropetest/advanced_oi_test.py @@ -655,6 +655,7 @@ class NewStaticOITest(unittest.TestCase): rope.base.builtins.Str)) def test_report_cha...
advanced_oi_test: libutils works only if automatic_soa is enabled
py
diff --git a/scapy/layers/inet.py b/scapy/layers/inet.py index <HASH>..<HASH> 100644 --- a/scapy/layers/inet.py +++ b/scapy/layers/inet.py @@ -925,7 +925,7 @@ class TracerouteResult(SndRcvList): trace_id = (s.src,s.dst,s.proto,0) trace = rt.get(trace_id,{}) ttl = conf.ipv6_ena...
Fixed bug in [<I>cfa<I>]: replaced conf.use_inet6 by conf.ipv6_enabled
py
diff --git a/xarray/core/dataset.py b/xarray/core/dataset.py index <HASH>..<HASH> 100644 --- a/xarray/core/dataset.py +++ b/xarray/core/dataset.py @@ -1846,6 +1846,10 @@ class Dataset(DataWithCoords, DatasetArithmetic, Mapping): If a DataArray is a dask array, it is written with those chunks. ...
DOC: add see also for to_zarr (#<I>) * DOC: add see also for to_zarr * rm white space * rm white space
py
diff --git a/pyghmi/ipmi/oem/lenovo/handler.py b/pyghmi/ipmi/oem/lenovo/handler.py index <HASH>..<HASH> 100755 --- a/pyghmi/ipmi/oem/lenovo/handler.py +++ b/pyghmi/ipmi/oem/lenovo/handler.py @@ -541,4 +541,5 @@ class OEMHandler(generic.OEMHandler): # fall back to a dumber, but more universal formatter ...
Have ipv6 addresses always be represented as list IPv6 interfaces tend to emphasize more open ended use of aliases. To support this, have ipv6_addresses manifest as a list, to allow for implementations to extend to represent more complex situations. Change-Id: Ia<I>ff<I>da<I>f<I>a<I>e<I>dc<I>d4f<I>b2
py
diff --git a/solvebio/client.py b/solvebio/client.py index <HASH>..<HASH> 100644 --- a/solvebio/client.py +++ b/solvebio/client.py @@ -13,7 +13,12 @@ import platform import requests import textwrap import logging + +from requests import Session +from requests import codes from requests.auth import AuthBase +from re...
retry failed connections 5 times in core client (fixes #<I>)
py
diff --git a/MambuPy/mambuutil.py b/MambuPy/mambuutil.py index <HASH>..<HASH> 100644 --- a/MambuPy/mambuutil.py +++ b/MambuPy/mambuutil.py @@ -1092,7 +1092,7 @@ def backup_db(callback, bool_func, output_fname, *args, **kwargs): if verbose: log.write("open url: "+posturl+"\n") log.flus...
Autentication params were not sent correctly in function backup_db
py
diff --git a/pygsp/plotting.py b/pygsp/plotting.py index <HASH>..<HASH> 100644 --- a/pygsp/plotting.py +++ b/pygsp/plotting.py @@ -299,6 +299,8 @@ def _plot_graph(G, vertex_color, vertex_size, highlight, Signal to plot as vertex color (length is the number of vertices). If None, vertex color is set to...
Update mdeff comments on doc
py
diff --git a/simpl/server.py b/simpl/server.py index <HASH>..<HASH> 100644 --- a/simpl/server.py +++ b/simpl/server.py @@ -59,7 +59,7 @@ OPTIONS = [ group='Server Options', ), config.Option( - '--debug', '-d', + '--debug-server', help=_fill( 'Run bottle server with...
fix(server): --debug & --quiet conflicts --debug was an existing option in log.OPTIONS, so the debug flag for the server was changed to --debug-server. --quiet was an existing option in log.OPTIONS, so the quiet flag for the server was changed to --quiet-server
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,11 +11,6 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) base_url = "https://github.com/ababic/django-app-utils/" download_url = '%starball/v%s' % (base_url, __version__) -# Necessary ...
Don't specify install_requires if it isn't really needed
py
diff --git a/dpxdt/client/queue_workers.py b/dpxdt/client/queue_workers.py index <HASH>..<HASH> 100644 --- a/dpxdt/client/queue_workers.py +++ b/dpxdt/client/queue_workers.py @@ -97,6 +97,8 @@ class HeartbeatWorkflow(workers.WorkflowItem): higher than the last heartbeat message. """ + fire_and_fo...
Make heartbeats fire-and-forget
py
diff --git a/sdk/python/lib/pulumi/resource.py b/sdk/python/lib/pulumi/resource.py index <HASH>..<HASH> 100644 --- a/sdk/python/lib/pulumi/resource.py +++ b/sdk/python/lib/pulumi/resource.py @@ -382,6 +382,12 @@ class ResourceOptions: opts1 = ResourceOptions() if opts1 is None else opts1 opts2 = Resou...
Add some simple typechecking (#<I>)
py
diff --git a/theanets/trainer.py b/theanets/trainer.py index <HASH>..<HASH> 100644 --- a/theanets/trainer.py +++ b/theanets/trainer.py @@ -193,6 +193,9 @@ class SupervisedPretrainer(object): .. [Ben06] Y. Bengio, P. Lamblin, D. Popovici, & H. Larochelle. (NIPS 2006) "Greedy Layer-Wise Training of Deep Netw...
Add link to appendix too. [ci skip]
py
diff --git a/warehouse/search/__init__.py b/warehouse/search/__init__.py index <HASH>..<HASH> 100644 --- a/warehouse/search/__init__.py +++ b/warehouse/search/__init__.py @@ -42,8 +42,8 @@ def includeme(config): [urllib.parse.urlunparse(p[:2] + ("",) * 4)], verify_certs=True, ca_certs=certifi...
be aggressive in timeouts/retries with Elasticsearch (#<I>)
py
diff --git a/napalm_junos/junos.py b/napalm_junos/junos.py index <HASH>..<HASH> 100644 --- a/napalm_junos/junos.py +++ b/napalm_junos/junos.py @@ -160,9 +160,21 @@ class JunOSDriver(NetworkDriver): def _detect_config_format(self, config): fmt = 'text' + set_action_matches = [ + 'set', ...
Fixes #<I> - Adds more actions to config detection.
py
diff --git a/src/txacme/test/test_challenges.py b/src/txacme/test/test_challenges.py index <HASH>..<HASH> 100644 --- a/src/txacme/test/test_challenges.py +++ b/src/txacme/test/test_challenges.py @@ -7,9 +7,6 @@ from hypothesis import strategies as s from hypothesis import example, given from testtools import TestCase...
Remove unused imports in challenges tests
py