diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/examples/websocket_example.py b/examples/websocket_example.py index <HASH>..<HASH> 100644 --- a/examples/websocket_example.py +++ b/examples/websocket_example.py @@ -27,10 +27,6 @@ if __name__ == '__main__': async def on_second_bars(conn, channel, bar): print('bars', bar) - @conn...
there's no meaningful data on on_account_updates
py
diff --git a/aikif/toolbox/parse_desc.py b/aikif/toolbox/parse_desc.py index <HASH>..<HASH> 100644 --- a/aikif/toolbox/parse_desc.py +++ b/aikif/toolbox/parse_desc.py @@ -7,7 +7,16 @@ def TEST(): backup_rules = 'T:\\user\\dev\\src\\python\\AIKIF\\aikif\\data\\ref\\backup_rules.desc' p = Parse(backup_rules) ...
working out function interface for parse_desc toolbox
py
diff --git a/shellen/shell.py b/shellen/shell.py index <HASH>..<HASH> 100644 --- a/shellen/shell.py +++ b/shellen/shell.py @@ -75,7 +75,6 @@ class Shellen(CLI): return self.pexec.last_shellcode() def __prompt_init(self): - self.history = InMemoryHistory() self.asm_history = InMemoryHisto...
split history for asm and dsm
py
diff --git a/sphinxgallery/gen_rst.py b/sphinxgallery/gen_rst.py index <HASH>..<HASH> 100644 --- a/sphinxgallery/gen_rst.py +++ b/sphinxgallery/gen_rst.py @@ -364,7 +364,7 @@ def generate_dir_rst(src_dir, target_dir, gallery_conf, seen_backrefs): if not os.path.exists(target_dir): os.makedirs(target_dir) ...
BUG fix. npy file of temporary numpy arrays also fulfill condition and crash execution
py
diff --git a/pycbc/ahope/datafind_utils.py b/pycbc/ahope/datafind_utils.py index <HASH>..<HASH> 100644 --- a/pycbc/ahope/datafind_utils.py +++ b/pycbc/ahope/datafind_utils.py @@ -119,10 +119,10 @@ def setup_datafind_workflow(workflow, scienceSegs, outputDir, msg += "\n%s" % "\n".join(map(str, missing)...
Do not need to update times if no discrepancies
py
diff --git a/OpenSSL/test/test_crypto.py b/OpenSSL/test/test_crypto.py index <HASH>..<HASH> 100644 --- a/OpenSSL/test/test_crypto.py +++ b/OpenSSL/test/test_crypto.py @@ -3164,7 +3164,11 @@ class CRLTests(TestCase): in a :py:obj:`ValueError` being raised. """ crl = CRL() - self.assertR...
Pass the correct type to CRL.export.
py
diff --git a/test.py b/test.py index <HASH>..<HASH> 100755 --- a/test.py +++ b/test.py @@ -2849,16 +2849,15 @@ class EngineTestCase(unittest.TestCase): mock.expect("uci", ["uciok"]) await protocol.initialize() - # Think. + # Iota writes invalid \0 character in old versi...
Fix expectations in iota test (#<I>)
py
diff --git a/asn1crypto/core.py b/asn1crypto/core.py index <HASH>..<HASH> 100644 --- a/asn1crypto/core.py +++ b/asn1crypto/core.py @@ -297,7 +297,30 @@ class Asn1Value(object): A unicode string """ - return '<%s %s %s>' % (type_name(self), id(self), repr(self.dump())) + if py2: + ...
Improve usability by providing default __bytes__() and __unicode__() methods for all core classes
py
diff --git a/soccer/leagueproperties.py b/soccer/leagueproperties.py index <HASH>..<HASH> 100644 --- a/soccer/leagueproperties.py +++ b/soccer/leagueproperties.py @@ -9,7 +9,7 @@ LEAGUE_PROPERTIES = { "cl": [1, 4], "el": [5, 6] }, - "BL2": { + "BL2": { "rl": [16, 18], ...
Update leagueproperties.py
py
diff --git a/salt/modules/network.py b/salt/modules/network.py index <HASH>..<HASH> 100644 --- a/salt/modules/network.py +++ b/salt/modules/network.py @@ -2101,6 +2101,7 @@ def fqdns(): # This avoid blocking the execution when the "fqdn" is not defined for certains IP addresses, which was causing # that "sock...
Avoid undefined variable in case of Exception
py
diff --git a/psiturk/amt_services.py b/psiturk/amt_services.py index <HASH>..<HASH> 100644 --- a/psiturk/amt_services.py +++ b/psiturk/amt_services.py @@ -407,7 +407,7 @@ class MTurkServices(object): worker_data = [{ 'hitId': worker.HITId, 'assignmentId': worker.AssignmentId, - ...
Fixes typo introduced in worker API
py
diff --git a/testsuite/test_formatter_engine.py b/testsuite/test_formatter_engine.py index <HASH>..<HASH> 100644 --- a/testsuite/test_formatter_engine.py +++ b/testsuite/test_formatter_engine.py @@ -918,6 +918,19 @@ class FormatTest(InvenioTestCase): ln=ln) ...
formatter: test engine xslt format addition * Adds test for xslt format engine. (closes #<I>)
py
diff --git a/lib/data_stores/mysql_advanced_data_store.py b/lib/data_stores/mysql_advanced_data_store.py index <HASH>..<HASH> 100644 --- a/lib/data_stores/mysql_advanced_data_store.py +++ b/lib/data_stores/mysql_advanced_data_store.py @@ -87,7 +87,7 @@ class MySQLConnection(object): raise Error(str(e)) ...
Converted common messages to warn instead of error
py
diff --git a/pubsub/google/cloud/pubsub_v1/subscriber/policy/thread.py b/pubsub/google/cloud/pubsub_v1/subscriber/policy/thread.py index <HASH>..<HASH> 100644 --- a/pubsub/google/cloud/pubsub_v1/subscriber/policy/thread.py +++ b/pubsub/google/cloud/pubsub_v1/subscriber/policy/thread.py @@ -30,6 +30,11 @@ from google.cl...
Move debug logging call in Future.add_done_callback (#<I>)
py
diff --git a/subscriptions/tasks.py b/subscriptions/tasks.py index <HASH>..<HASH> 100644 --- a/subscriptions/tasks.py +++ b/subscriptions/tasks.py @@ -34,13 +34,10 @@ class FireMetric(Task): metric = { metric_name: metric_value } - try: - metric_client = get_metric_clien...
remove generic try/except to see error in sentry
py
diff --git a/cherrypy/_cpserver.py b/cherrypy/_cpserver.py index <HASH>..<HASH> 100644 --- a/cherrypy/_cpserver.py +++ b/cherrypy/_cpserver.py @@ -59,7 +59,10 @@ class Server(ServerAdapter): nodelay = True def __init__(self): - ServerAdapter.__init__(self, cherrypy.engine) + self.bus = che...
Fixed a bind_addr buglet introduced in [<I>].
py
diff --git a/distro.py b/distro.py index <HASH>..<HASH> 100755 --- a/distro.py +++ b/distro.py @@ -1025,7 +1025,7 @@ class LinuxDistribution: A dictionary containing all information items. """ if os.path.isfile(self.os_release_file): - with open(self.os_release_file) as release...
Specifies UTF-8 encoding when opening os-release/distro release files (#<I>) This patch fixes execution when system default locale does not support Unicode. distro actually didn't honor OS-RELEASE(5), telling us to expect UTF-8 encoded strings : <<URL>
py
diff --git a/precise/train_data.py b/precise/train_data.py index <HASH>..<HASH> 100644 --- a/precise/train_data.py +++ b/precise/train_data.py @@ -14,6 +14,7 @@ import json from argparse import ArgumentParser from contextlib import suppress +from glob import glob from hashlib import md5 from os.path import join, i...
Add warning if loading from folder with many wavs without specifying tags file
py
diff --git a/round/accounts.py b/round/accounts.py index <HASH>..<HASH> 100644 --- a/round/accounts.py +++ b/round/accounts.py @@ -142,14 +142,18 @@ class Account(Wrapper, Updatable): Account. Args: - status (str): One of ["unsigned", "unapproved", - "confirme...
account.transactions now accepts a list of acceptable statuses
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,10 @@ import uuid from distutils.core import setup from setuptools import find_packages -from pip.req import parse_requirements +try: # for pip >= 10 + from pip._internal.req import parse_requirements +except Im...
Fixed error with pip <I>.x
py
diff --git a/yoti_python_sdk/anchor.py b/yoti_python_sdk/anchor.py index <HASH>..<HASH> 100644 --- a/yoti_python_sdk/anchor.py +++ b/yoti_python_sdk/anchor.py @@ -13,7 +13,6 @@ SOURCE_EXTENSION = "1.3.6.1.4.1.47127.1.1.1" VERIFIER_EXTENSION = "1.3.6.1.4.1.47127.1.1.2" UNKNOWN_ANCHOR_TYPE = "Unknown" -UNKNOWN_ANCHOR...
SDK-<I>: Remove UNKNOWN_SUB_TYPE from anchor.py
py
diff --git a/modpypes/client.py b/modpypes/client.py index <HASH>..<HASH> 100644 --- a/modpypes/client.py +++ b/modpypes/client.py @@ -295,12 +295,13 @@ def main(): this_controller = SieveClientController() if _debug: _log.debug(" - this_controller: %r", this_controller) - this_console = ConsoleClient...
move the console, just to make it consistent with the other applications
py
diff --git a/sentry/views.py b/sentry/views.py index <HASH>..<HASH> 100644 --- a/sentry/views.py +++ b/sentry/views.py @@ -235,7 +235,7 @@ def group(request, group_id): group = get_object_or_404(GroupedMessage, pk=group_id) obj = group.message_set.all().order_by('-id')[0] - if '__sentry__' in obj.data: +...
Updated group view to handle display of messages where __sentry__ does not contain exc (for instance, messages from the logging handler).
py
diff --git a/osprey/execute_dump.py b/osprey/execute_dump.py index <HASH>..<HASH> 100644 --- a/osprey/execute_dump.py +++ b/osprey/execute_dump.py @@ -15,7 +15,14 @@ def execute(args, parser): if args.output == 'json': items = [curr.to_dict() for curr in session.query(Trial).all()] - value = json...
Store hyperparameters with the other settings Instead of storing them in their own 'parameters' directory.
py
diff --git a/exporters/readers/s3_reader.py b/exporters/readers/s3_reader.py index <HASH>..<HASH> 100644 --- a/exporters/readers/s3_reader.py +++ b/exporters/readers/s3_reader.py @@ -297,7 +297,7 @@ class S3Reader(BaseReader): """ if last_position is None: self.last_position = {} - ...
Copy self.keys since it's going to be modified after This was causing every other key in s3 to not be read, the list first was being added to last_position by reference and then removed the read keys from it, causing the loop to skip one item.
py
diff --git a/invenio_communities/version.py b/invenio_communities/version.py index <HASH>..<HASH> 100644 --- a/invenio_communities/version.py +++ b/invenio_communities/version.py @@ -14,4 +14,4 @@ and parsed by ``setup.py``. from __future__ import absolute_import, print_function -__version__ = "2.6.0.dev6" +__vers...
release: <I>.dev7
py
diff --git a/path.py b/path.py index <HASH>..<HASH> 100644 --- a/path.py +++ b/path.py @@ -1455,7 +1455,7 @@ class Path(text_type): target = source.readlink() target.symlink(dest) elif source.isdir(): - source.mergetree( + source.merge_tree( ...
Fix self-reference. Clearly this functionality isn't covered by tests.
py
diff --git a/mutagen/flac.py b/mutagen/flac.py index <HASH>..<HASH> 100644 --- a/mutagen/flac.py +++ b/mutagen/flac.py @@ -284,6 +284,9 @@ class SeekPoint(tuple): return super(cls, SeekPoint).__new__( cls, (first_sample, byte_offset, num_samples)) + def __getnewargs__(self): + return s...
Fix #<I>: Add __getnewargs__ method to SeekPoint to support pickling
py
diff --git a/src/foremast/pipeline/construct_pipeline_block.py b/src/foremast/pipeline/construct_pipeline_block.py index <HASH>..<HASH> 100644 --- a/src/foremast/pipeline/construct_pipeline_block.py +++ b/src/foremast/pipeline/construct_pipeline_block.py @@ -76,7 +76,7 @@ def construct_pipeline_block(env='', LOG.i...
Added a missing comma
py
diff --git a/pyknow/activation.py b/pyknow/activation.py index <HASH>..<HASH> 100644 --- a/pyknow/activation.py +++ b/pyknow/activation.py @@ -38,4 +38,4 @@ class Activation: return self.rule == other.rule and self.facts == other.facts def __hash__(self): - return hash((self.rule, self.facts)) + ...
Activation is now hashable
py
diff --git a/oath/_ocra.py b/oath/_ocra.py index <HASH>..<HASH> 100644 --- a/oath/_ocra.py +++ b/oath/_ocra.py @@ -155,7 +155,7 @@ class DataInput(object): except ValueError: raise ValueError, 'challenge' if self.Q[0] == 'N': - Q = hex(int(Q))[2:] + ...
Use '%x' instead of hex() which is less predictable in OCRA implementation
py
diff --git a/digsandpaper/search_server.py b/digsandpaper/search_server.py index <HASH>..<HASH> 100644 --- a/digsandpaper/search_server.py +++ b/digsandpaper/search_server.py @@ -308,7 +308,7 @@ def config(): predicate_type_mapping[field_name] = field_name.lower() type_group_field_mapping[field_name] ...
Don't add text fields to date type field mappings
py
diff --git a/bids/modeling/statsmodels.py b/bids/modeling/statsmodels.py index <HASH>..<HASH> 100644 --- a/bids/modeling/statsmodels.py +++ b/bids/modeling/statsmodels.py @@ -641,8 +641,9 @@ class BIDSStatsModelsNodeOutput: transformer = tm.TransformerManager(transformations['transformer']) ...
FIX: Select() requires var_names to be a subset whereas this needs to be an intersection of variables and Model.X
py
diff --git a/salt/fileserver/s3fs.py b/salt/fileserver/s3fs.py index <HASH>..<HASH> 100644 --- a/salt/fileserver/s3fs.py +++ b/salt/fileserver/s3fs.py @@ -78,7 +78,7 @@ import salt.modules import salt.utils import salt.utils.s3 as s3 import salt.utils.six as six -from six.moves import filter +from salt.utils.six.mov...
Replaced module six in file /salt/fileserver/s3fs.py
py
diff --git a/firecloud/fiss.py b/firecloud/fiss.py index <HASH>..<HASH> 100755 --- a/firecloud/fiss.py +++ b/firecloud/fiss.py @@ -1258,6 +1258,11 @@ def main(): rec_parser.set_defaults(func=recover_supervisor) + # Create the .fiss directory if it doesn't exist + fiss_home = os.path.expanduser("~/.fiss")...
Add snippet to create FISS Home if not present
py
diff --git a/salt/modules/glance.py b/salt/modules/glance.py index <HASH>..<HASH> 100644 --- a/salt/modules/glance.py +++ b/salt/modules/glance.py @@ -127,7 +127,9 @@ def _auth(profile=None, api_version=2, **connection_args): region = get('region') ks_endpoint = get('endpoint', 'http://127.0.0.1:9292/') ...
Always remove trailing "v2" from Glance endpoint
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,6 @@ setup( download_url='https://github.com/PabloCastellano/libcnml/archive/master.zip', keywords = ['cnml', 'free networks', 'guifi.net'], license=__license__, - data_files=[('', ['LICENSE.txt'])]...
[setup.py] Removed LICENSE from data_file #<I> Fixes #<I>
py
diff --git a/folium/features.py b/folium/features.py index <HASH>..<HASH> 100644 --- a/folium/features.py +++ b/folium/features.py @@ -444,7 +444,7 @@ class GeoJson(Layer): data = data.to_crs(epsg='4326') self.data = json.loads(json.dumps(data.__geo_interface__)) # noqa else: - ...
More descriptive error in GeoJson on GeoDataFrame with missing geometries (#<I>) Have GeoJson raise a more descriptive error when passed a GeoDataFrame with missing geometries.
py
diff --git a/lib/svtplay_dl/fetcher/rtmp.py b/lib/svtplay_dl/fetcher/rtmp.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/fetcher/rtmp.py +++ b/lib/svtplay_dl/fetcher/rtmp.py @@ -6,7 +6,7 @@ import shlex from svtplay_dl.log import log from svtplay_dl.fetcher import VideoRetriever -from svtplay_dl.utils.output i...
rtmp: generate correct filename
py
diff --git a/jbxapi.py b/jbxapi.py index <HASH>..<HASH> 100644 --- a/jbxapi.py +++ b/jbxapi.py @@ -41,12 +41,12 @@ API_URL = "https://jbxcloud.joesecurity.org/api" # API_URL = "http://" + webserveraddress + "/joesandbox/index.php/api" # APIKEY, to generate goto user settings - API key -API_KEY = "" +API_KEY = os.en...
Get API key and TAC Accept from Environment Use JBX_API_KEY and JBX_ACCEPT_TAC environment keys to pass the Key and agree to the TAC, instead of modifying the jbxapi library.
py
diff --git a/src/lineage/snps/__init__.py b/src/lineage/snps/__init__.py index <HASH>..<HASH> 100644 --- a/src/lineage/snps/__init__.py +++ b/src/lineage/snps/__init__.py @@ -100,6 +100,16 @@ class SNPs: return self._build @property + def build_detected(self): + """ Get status indicating if bu...
Add `build_detected` property
py
diff --git a/marathon_acme/sse_protocol.py b/marathon_acme/sse_protocol.py index <HASH>..<HASH> 100644 --- a/marathon_acme/sse_protocol.py +++ b/marathon_acme/sse_protocol.py @@ -19,7 +19,7 @@ class SseProtocol(Protocol): def _reset_event_data(self): self.event = 'message' - self.data = '' + ...
Use a list of data lines to back SSE protocol rather
py
diff --git a/tests/unit/core/BaseTest.py b/tests/unit/core/BaseTest.py index <HASH>..<HASH> 100644 --- a/tests/unit/core/BaseTest.py +++ b/tests/unit/core/BaseTest.py @@ -389,8 +389,8 @@ class BaseTest: def test_props_all(self): a = self.geo.props() - b = ['pore.all', 'pore.diameter', 'pore.volum...
removing alls from base tests...should not have added them in the first place
py
diff --git a/superset/views.py b/superset/views.py index <HASH>..<HASH> 100755 --- a/superset/views.py +++ b/superset/views.py @@ -1830,7 +1830,7 @@ class Superset(BaseSupersetView): @api @has_access_api - @expose("/schemas/<db_id>") + @expose("/schemas/<db_id>/") def schemas(self, db_id): ...
Add trailing slash (#<I>)
py
diff --git a/twitcher/owsproxy.py b/twitcher/owsproxy.py index <HASH>..<HASH> 100644 --- a/twitcher/owsproxy.py +++ b/twitcher/owsproxy.py @@ -88,9 +88,10 @@ def _send_request(request, service, extra_path=None, request_params=None): return OWSAccessFailed("Request failed: {}".format(e)) # Header...
Header case sensitivity and status code (#<I>) * headers are case-insensitive (some servers use lowercase only) * forward to the client the status code received from the proxied server
py
diff --git a/pandas/computation/tests/test_eval.py b/pandas/computation/tests/test_eval.py index <HASH>..<HASH> 100644 --- a/pandas/computation/tests/test_eval.py +++ b/pandas/computation/tests/test_eval.py @@ -134,7 +134,7 @@ class TestEvalNumexprPandas(tm.TestCase): @slow def test_complex_cmp_ops(self): -...
TST: complex ops test correction
py
diff --git a/python/mxnet/initializer.py b/python/mxnet/initializer.py index <HASH>..<HASH> 100644 --- a/python/mxnet/initializer.py +++ b/python/mxnet/initializer.py @@ -108,7 +108,7 @@ class Load(object): self.verbose = verbose def __call__(self, name, arr): - if self.param.has_key(name): + ...
Change "has_key" to "in" in python/mxnet/initializer.py (#<I>)
py
diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index <HASH>..<HASH> 100644 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -34,9 +34,9 @@ into chunks. Parameters ---------- filepath_or_buffer : string or file handle / StringIO. The string could be - a URL. Valid URL schemes include http://, ftp...
DOC: doc fix since sphinx doesn't like file://
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ setup( scripts=['bin/yaml2rst'], #url="", #download_url='http://yml2rst-%s.tar.gz' % __version__, - keywords=['YML', 'rst', 'reStructuresText', 'literate programming'], + keywords=['YML', 'Y...
Add "YAML" as keyword.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -2,6 +2,7 @@ # -*- encoding:utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals +import codecs import re from setuptools import setup @@ -11,7 +12,7 @@ def get_version(filename)...
setup.py - use codecs.open and context manager
py
diff --git a/tests/test_gist.py b/tests/test_gist.py index <HASH>..<HASH> 100644 --- a/tests/test_gist.py +++ b/tests/test_gist.py @@ -1,6 +1,7 @@ import base64 import json import re +import sys import responses @@ -138,13 +139,18 @@ def test_create(gist_api): @responses.activate -def test_gnupg_create_fro...
tests: force isatty to return True This is a workaround to ensure the correct codepath is executed when the test is run with github actions.
py
diff --git a/unitypack/__init__.py b/unitypack/__init__.py index <HASH>..<HASH> 100644 --- a/unitypack/__init__.py +++ b/unitypack/__init__.py @@ -414,7 +414,7 @@ class Asset: id = self.read_id(buf) self.adds.append((id, buf.read_int())) - if self.format >= 14: + if self.format >= 6: num_refs = buf.re...
Validate asset refs on versions >= 6
py
diff --git a/example.py b/example.py index <HASH>..<HASH> 100644 --- a/example.py +++ b/example.py @@ -18,7 +18,7 @@ def main(): line.img.incAngle(5) print(screen) - time.sleep(.05) + time.sleep(.01) if __name__ == '__main__': main() \ No newline at end ...
Increased frame rate from last commit to <I>, to fix #6 entirely.
py
diff --git a/bcbio/illumina/flowcell.py b/bcbio/illumina/flowcell.py index <HASH>..<HASH> 100644 --- a/bcbio/illumina/flowcell.py +++ b/bcbio/illumina/flowcell.py @@ -13,7 +13,7 @@ def parse_dirname(fc_dir): name = None date = None for p in parts: - if p.endswith(("XX", "xx", "XY", "X2")): + ...
Handle new illumina flowcells ending with X3
py
diff --git a/categories/admin.py b/categories/admin.py index <HASH>..<HASH> 100644 --- a/categories/admin.py +++ b/categories/admin.py @@ -101,10 +101,10 @@ class CategoryAdmin(TreeEditor, admin.ModelAdmin): admin.site.register(Category, CategoryAdmin) -for model,modeladmin in admin.site._registry.items(): +for mo...
Fixed a problem in the new admin creation where it wouldn't properly filter out the category fields by model
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,6 +11,8 @@ REQUIREMENTS = [ "dynamo3>=0.4.7", "pyparsing==2.1.4", "python-dateutil", + "botocore>=1.17.55", + "rich>=6.1.1", ] EXTRAS = {
Adding `rich` and `botocore` to the requirements.
py
diff --git a/column/api/controller/run_controller.py b/column/api/controller/run_controller.py index <HASH>..<HASH> 100644 --- a/column/api/controller/run_controller.py +++ b/column/api/controller/run_controller.py @@ -31,7 +31,7 @@ run_post_schema = { "private_key_file": {"type": ["string", "null"]}, ...
Update run POST method schema tags could be string, null and array.
py
diff --git a/slave/types.py b/slave/types.py index <HASH>..<HASH> 100644 --- a/slave/types.py +++ b/slave/types.py @@ -4,7 +4,7 @@ """Contains the type factory classes used to load and dump values to string. The type module contains several type classes used by the :class:`~.Command` -class to load and dump values....
Minor changes to types module docstring.
py
diff --git a/mpop/scene.py b/mpop/scene.py index <HASH>..<HASH> 100644 --- a/mpop/scene.py +++ b/mpop/scene.py @@ -276,10 +276,7 @@ class Scene(InfoObject): # If we have any composites that need to be made, then let's create the composite objects if composite_names: - # for comp_name in c...
better handling of loading composite dependencies...i think
py
diff --git a/etcd3gw/lock.py b/etcd3gw/lock.py index <HASH>..<HASH> 100644 --- a/etcd3gw/lock.py +++ b/etcd3gw/lock.py @@ -30,7 +30,7 @@ class Lock(object): self.client = client self.key = LOCK_PREFIX + self.name self.lease = None - self._uuid = None + self._uuid = str(uuid.uuid...
Update lock.py Locks can not be freed after multiple acquire functions are executed in single case mode
py
diff --git a/merlyn/auth.py b/merlyn/auth.py index <HASH>..<HASH> 100644 --- a/merlyn/auth.py +++ b/merlyn/auth.py @@ -15,6 +15,14 @@ class User(item.Item): class UserMixin(object): + """A mixin that makes the user available based on the peer certificate. + + Mostly intended for command locators (that are al...
More docstring for UserMixin
py
diff --git a/src/ploneintranet/workspace/browser/tiles/sidebar.py b/src/ploneintranet/workspace/browser/tiles/sidebar.py index <HASH>..<HASH> 100644 --- a/src/ploneintranet/workspace/browser/tiles/sidebar.py +++ b/src/ploneintranet/workspace/browser/tiles/sidebar.py @@ -213,4 +213,3 @@ class Sidebar(BaseTile): ...
Tidy: Remove trailing blank line
py
diff --git a/beaver/transports/mqtt_transport.py b/beaver/transports/mqtt_transport.py index <HASH>..<HASH> 100644 --- a/beaver/transports/mqtt_transport.py +++ b/beaver/transports/mqtt_transport.py @@ -5,14 +5,14 @@ from beaver.transports.base_transport import BaseTransport from beaver.transports.exception import Tra...
Fixed broken MqttTransport naming
py
diff --git a/flask_oauthlib/provider/oauth2.py b/flask_oauthlib/provider/oauth2.py index <HASH>..<HASH> 100644 --- a/flask_oauthlib/provider/oauth2.py +++ b/flask_oauthlib/provider/oauth2.py @@ -815,7 +815,7 @@ class OAuth2RequestValidator(RequestValidator): redirect_uris strictly, you can add a `validate_redi...
Fix a typo in oauth2 provider. May be I'm missing something, but it seems like a typo
py
diff --git a/smart_selects/urls.py b/smart_selects/urls.py index <HASH>..<HASH> 100644 --- a/smart_selects/urls.py +++ b/smart_selects/urls.py @@ -1,4 +1,7 @@ -from django.conf.urls.defaults import * +try: + from django.conf.urls.defaults import * +except ImportError: + from django.conf.urls import * urlpatter...
fix compatibility issue with Django <I>
py
diff --git a/tapioca_github/resource_mapping.py b/tapioca_github/resource_mapping.py index <HASH>..<HASH> 100644 --- a/tapioca_github/resource_mapping.py +++ b/tapioca_github/resource_mapping.py @@ -111,11 +111,11 @@ RESOURCE_MAPPING = { 'doc': 'https://developer.github.com/v3/repos/collaborators/#check-if-a-u...
remove trailing slash on commit resources
py
diff --git a/treeherder/etl/allthethings.py b/treeherder/etl/allthethings.py index <HASH>..<HASH> 100644 --- a/treeherder/etl/allthethings.py +++ b/treeherder/etl/allthethings.py @@ -5,7 +5,7 @@ from hashlib import sha1 from django.conf import settings from treeherder.etl.buildbot import get_symbols_and_platforms -...
Bug <I> - Switch allthethings from JsonExtractorMixin to fetch_json
py
diff --git a/openpnm/algorithms/metrics/RelativePermeability.py b/openpnm/algorithms/metrics/RelativePermeability.py index <HASH>..<HASH> 100644 --- a/openpnm/algorithms/metrics/RelativePermeability.py +++ b/openpnm/algorithms/metrics/RelativePermeability.py @@ -206,7 +206,7 @@ class RelativePermeability(GenericAlgorit...
The only problem is except KeyError(): catching classes that do not inherit from BaseException is not allowed! If I remove KeyError(), it works, but another problem will rise: E<I> do not use bare except!
py
diff --git a/bot/multithreading/scheduler.py b/bot/multithreading/scheduler.py index <HASH>..<HASH> 100644 --- a/bot/multithreading/scheduler.py +++ b/bot/multithreading/scheduler.py @@ -37,6 +37,10 @@ class SchedulerApi: "background", min_workers=0, max_workers=1, max_seconds_idle=DEFAULT_WORKER_POOL_MAX_...
Add a set_callbacks function to scheduler to update worker events callbacks
py
diff --git a/malcolm/modules/ADCore/parts/detectordriverpart.py b/malcolm/modules/ADCore/parts/detectordriverpart.py index <HASH>..<HASH> 100644 --- a/malcolm/modules/ADCore/parts/detectordriverpart.py +++ b/malcolm/modules/ADCore/parts/detectordriverpart.py @@ -367,8 +367,30 @@ class DetectorDriverPart(builtin.parts.C...
DetectorDriverPart: handle breakpoints in on_post_run_armed
py
diff --git a/tests/__init__.py b/tests/__init__.py index <HASH>..<HASH> 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -12,7 +12,7 @@ if os.name == "nt": import win32file # pylint: disable=import-error - win32file._setmaxstdio(2048) + win32file._setmaxstdio(4096) # Workaround for two b...
tests: increase ulimit to <I> (#<I>)
py
diff --git a/omrdatasettools/converters/ImageInverter.py b/omrdatasettools/converters/ImageInverter.py index <HASH>..<HASH> 100644 --- a/omrdatasettools/converters/ImageInverter.py +++ b/omrdatasettools/converters/ImageInverter.py @@ -12,7 +12,7 @@ class ImageInverter: def __init__(self) -> None: super()....
Making the image file-ending a call-parameter for the image inverter
py
diff --git a/ipuz/validators.py b/ipuz/validators.py index <HASH>..<HASH> 100644 --- a/ipuz/validators.py +++ b/ipuz/validators.py @@ -18,7 +18,8 @@ def validate_int(field_name, field_data): def validate_non_negative_int(field_name, field_data): - if type(field_data) is not int or field_data < 0: + validate_...
Refactor to reuse validation logic for integer
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -305,11 +305,12 @@ setup( license='LICENSE.txt', url="https://github.com/pythongssapi/python-gssapi", classifiers=[ - 'Development Status :: 4 - Beta', + 'Development Status :: 5 - Production/Stabl...
Update Trove classifiers Drop python2, note our stability, and update python3 minor versions.
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -18,6 +18,8 @@ import sys, os # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.insert(0, os.path.join(os.path.abspath('.'), '..')) +import soco + # -- General configurat...
extract version number in doc from soco module
py
diff --git a/productmd/treeinfo.py b/productmd/treeinfo.py index <HASH>..<HASH> 100644 --- a/productmd/treeinfo.py +++ b/productmd/treeinfo.py @@ -166,7 +166,8 @@ class BaseProduct(productmd.common.MetadataBase): def _validate_version(self): self._assert_type("version", list(six.string_types)) - ...
Update version validation in treeinfo The validation is duplicated in two places, so both need to be updated.
py
diff --git a/salt/modules/gpg.py b/salt/modules/gpg.py index <HASH>..<HASH> 100644 --- a/salt/modules/gpg.py +++ b/salt/modules/gpg.py @@ -97,7 +97,10 @@ def _check_gpg(): Looks to see if gpg binary is present on the system. ''' # Get the path to the gpg binary. - return salt.utils.which('gpg') + i...
modules.gpg: __virtual__ return err msg. Updated message when gpg binary is not in the path.
py
diff --git a/voltron/view.py b/voltron/view.py index <HASH>..<HASH> 100644 --- a/voltron/view.py +++ b/voltron/view.py @@ -691,7 +691,7 @@ class RegisterView (TerminalView): if values['c'] or values['z']: j = (True, 'c || z') else: - j = (True, '!c && !z') + ...
fix jbe/jna, taken True in both branches of if
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -209,7 +209,6 @@ setup( ], setup_requires=[ 'setuptools_scm', - 'setuptools_scm_git_archive', 'cffi>=1.5.0', 'pytest-runner' ],
setuptools_scm_git_archive seems suddenly broken
py
diff --git a/migrate_sql/autodetector.py b/migrate_sql/autodetector.py index <HASH>..<HASH> 100644 --- a/migrate_sql/autodetector.py +++ b/migrate_sql/autodetector.py @@ -211,8 +211,8 @@ class MigrationAutodetector(DjangoMigrationAutodetector): if not is_sql_equal(old_node.sql, new_node.sql): ...
Removed creating set ouf of dependencies since they are already sets.
py
diff --git a/spark/tests/conftest.py b/spark/tests/conftest.py index <HASH>..<HASH> 100644 --- a/spark/tests/conftest.py +++ b/spark/tests/conftest.py @@ -28,6 +28,7 @@ def dd_environment(): ), WaitFor(check_metrics_available, wait=5), ], + attempts=2, ): yield IN...
Add atempts to environment startup (#<I>)
py
diff --git a/pip_accel/tests.py b/pip_accel/tests.py index <HASH>..<HASH> 100644 --- a/pip_accel/tests.py +++ b/pip_accel/tests.py @@ -195,9 +195,8 @@ class PipAccelTestCase(unittest.TestCase): """ Verify pip-accel's "keeping pip off the internet" logic using an empty cache. - This test downl...
Correct notes that were invalidated in pull request <I>
py
diff --git a/tests/test_wrappers.py b/tests/test_wrappers.py index <HASH>..<HASH> 100644 --- a/tests/test_wrappers.py +++ b/tests/test_wrappers.py @@ -491,5 +491,5 @@ def test_storage_classes(): assert type(req.access_route) is ImmutableList MyRequest.list_storage_class = tuple - req = Request.from_value...
Fixed a test case. Last commit was broken -.-
py
diff --git a/gridmap/job.py b/gridmap/job.py index <HASH>..<HASH> 100644 --- a/gridmap/job.py +++ b/gridmap/job.py @@ -283,7 +283,7 @@ def _append_job_to_session(session, job, uniq_id, job_num, temp_dir='/scratch/', jt.args = ['-m', 'gridmap.runner', '{0}'.format(uniq_id), '{0}'.format(job_num), jo...
Fix ETS-specific issue with jobs not submitting on CentOS machines because of weird automount issues with os.getcwd().
py
diff --git a/blockstack/lib/config.py b/blockstack/lib/config.py index <HASH>..<HASH> 100644 --- a/blockstack/lib/config.py +++ b/blockstack/lib/config.py @@ -73,9 +73,10 @@ if os.getenv("BLOCKSTACK_TEST") is not None: else: RPC_SERVER_PORT = 6264 -RPC_MAX_ZONEFILE_LEN = 8192 # 8KB +RPC_MAX_ZONEFILE_LEN = 4...
zonefiles are 4K tops, in order to preserve backwards-compatibility with UDP-based protocols (like the old DHT)
py
diff --git a/testing/test_pytester.py b/testing/test_pytester.py index <HASH>..<HASH> 100644 --- a/testing/test_pytester.py +++ b/testing/test_pytester.py @@ -430,4 +430,4 @@ def test_testdir_run_timeout_expires(testdir): time.sleep(10)""" ) with pytest.raises(testdir.TimeoutExpired): - te...
Up timeout to 1 second for test
py
diff --git a/gwpy/io/__init__.py b/gwpy/io/__init__.py index <HASH>..<HASH> 100644 --- a/gwpy/io/__init__.py +++ b/gwpy/io/__init__.py @@ -28,7 +28,7 @@ __author__ = "Duncan Macleod <duncan.macleod@ligo.org>" __version__ = version.version -def reader(): +def reader(name=None, doc=None): """Construct a new uni...
io.reader: added name and doc kwargs
py
diff --git a/freezegun/api.py b/freezegun/api.py index <HASH>..<HASH> 100644 --- a/freezegun/api.py +++ b/freezegun/api.py @@ -117,7 +117,7 @@ class _freeze_time(): for module in modules: if module is None: continue - if module.__name__ != 'datetime': + if ha...
Check for attr __name__ before trying to access it In order for freeze gun to play well with py.test
py
diff --git a/nes_py/_rom.py b/nes_py/_rom.py index <HASH>..<HASH> 100644 --- a/nes_py/_rom.py +++ b/nes_py/_rom.py @@ -11,7 +11,7 @@ class ROM(object): # the magic bytes expected at the first four bytes of the header. # It spells "NES<END>" - _MAGIC = bytes([0x4E, 0x45, 0x53, 0x1A]) + _MAGIC = bytearr...
possible python2 support
py
diff --git a/lineage/individual.py b/lineage/individual.py index <HASH>..<HASH> 100644 --- a/lineage/individual.py +++ b/lineage/individual.py @@ -295,9 +295,18 @@ class Individual(object): """ try: - return pd.read_csv(file, skiprows=1, na_values='--', - nam...
Improve reading and parsing of FTDNA files
py
diff --git a/snakebacon/mcmc.py b/snakebacon/mcmc.py index <HASH>..<HASH> 100644 --- a/snakebacon/mcmc.py +++ b/snakebacon/mcmc.py @@ -7,7 +7,35 @@ from snakebacon.bacon import run_baconmcmc log = logging.getLogger(__name__) -class McmcResults: +class McmcProblem: + def __init___(self, coredates, **kwargs): + ...
Added skeleton for McmcProblem and McmcSetup class.
py
diff --git a/picotui/screen.py b/picotui/screen.py index <HASH>..<HASH> 100644 --- a/picotui/screen.py +++ b/picotui/screen.py @@ -124,7 +124,7 @@ class Screen: if (fg > 8): Screen.wr("\x1b[%d;%d;1m" % (fg + 30 - 8, bg + 40)) else: - Screen.wr("\x1b[%d;%dm" % (f...
screen: attr_color: Fix rendering of non-bright colors after bright.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -22,4 +22,9 @@ setup( python_requires=">=3.6", version="2.0.0", url="https://github.com/sivakov512/python-markdown-full-yaml-metadata", + classifiers=[ + "Programming Language :: Python", + "Pro...
Add suppoerted python versions to setup classifiers
py
diff --git a/services/datalad/tests/test_description.py b/services/datalad/tests/test_description.py index <HASH>..<HASH> 100644 --- a/services/datalad/tests/test_description.py +++ b/services/datalad/tests/test_description.py @@ -50,7 +50,6 @@ def post_and_check_description(client, new_dataset, base_description): ...
Remove extra debug statement in datalad service tests.
py
diff --git a/amaascore/transactions/interface.py b/amaascore/transactions/interface.py index <HASH>..<HASH> 100644 --- a/amaascore/transactions/interface.py +++ b/amaascore/transactions/interface.py @@ -226,11 +226,8 @@ class TransactionsInterface(Interface): 'currency': currency} res...
added the method for aggregate pnl retrieval
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ CLASSIFIERS = [ "Environment :: Console", "Intended Audience :: Developers", "Operating System :: OS Independent", - "License :: OSI Approved :: GNU Library or Lesser General Public License (LG...
Updated license classifier in ``setup.py``
py
diff --git a/gns3server/version.py b/gns3server/version.py index <HASH>..<HASH> 100644 --- a/gns3server/version.py +++ b/gns3server/version.py @@ -23,8 +23,8 @@ # or negative for a release candidate or beta (after the base version # number has been incremented) -__version__ = "2.1.21" -__version_info__ = (2, 1, 21,...
Development on <I>dev1
py
diff --git a/schemer/__init__.py b/schemer/__init__.py index <HASH>..<HASH> 100644 --- a/schemer/__init__.py +++ b/schemer/__init__.py @@ -194,9 +194,10 @@ class Schema(object): # Now loop over each field in the given instance and make sure we don't # have any fields not declared in the schema, unless...
Save a few iterations by not checking for unexpected fields at all if strict mode is off
py
diff --git a/auto_ml/utils.py b/auto_ml/utils.py index <HASH>..<HASH> 100644 --- a/auto_ml/utils.py +++ b/auto_ml/utils.py @@ -7,11 +7,6 @@ import math import os import random -from keras.constraints import maxnorm -from keras.layers import Dense, Dropout -from keras.models import Sequential -from keras.wrappers.sc...
nests some keras imports behind a try/except block to handle them not being installed
py
diff --git a/test/test.py b/test/test.py index <HASH>..<HASH> 100644 --- a/test/test.py +++ b/test/test.py @@ -134,8 +134,8 @@ class RedisSearchTestCase(ModuleTestCase('../module.so')): self.assertEqual(len(subset), docs.total) ids = [x.id for x in docs.docs] self.asse...
comment out the test to pass the test with RediSearch <I>
py