diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/furious/test_stubs/appengine/queues.py b/furious/test_stubs/appengine/queues.py index <HASH>..<HASH> 100644 --- a/furious/test_stubs/appengine/queues.py +++ b/furious/test_stubs/appengine/queues.py @@ -153,7 +153,8 @@ def _retry_or_delete(task, task_response, queue, queue_service, queue_name): if retr...
Make sure to increment the eta We are ignoring the eta, but when app engine postpones a task for a retry, it verifies the eta has increased.
py
diff --git a/nameko_sqlalchemy/database_session.py b/nameko_sqlalchemy/database_session.py index <HASH>..<HASH> 100644 --- a/nameko_sqlalchemy/database_session.py +++ b/nameko_sqlalchemy/database_session.py @@ -28,6 +28,10 @@ class DatabaseSession(DependencyProvider): self.engine.dispose() del self.en...
Implement `kill` in `DatabaseSession`
py
diff --git a/pymysql/cursors.py b/pymysql/cursors.py index <HASH>..<HASH> 100644 --- a/pymysql/cursors.py +++ b/pymysql/cursors.py @@ -103,12 +103,14 @@ class Cursor(object): #Worst case it will throw a Value error return conn.escape(args) - def execute(self, query, args=None): - '...
Add mogrify to Cursor, which returns the exact string to be executed This method is an extension to the DB API <I> also used by Psycopg. See <URL>
py
diff --git a/openquake/calculators/classical.py b/openquake/calculators/classical.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/classical.py +++ b/openquake/calculators/classical.py @@ -274,7 +274,7 @@ class PSHACalculator(base.HazardCalculator): :param result_dict: a dictionary with keys (grp_id,...
Removed a leftover reference to tiles Former-commit-id: <I>e6e<I>d<I>f<I>da<I>f<I>ebc6b9c
py
diff --git a/dipper/sources/GeneOntology.py b/dipper/sources/GeneOntology.py index <HASH>..<HASH> 100644 --- a/dipper/sources/GeneOntology.py +++ b/dipper/sources/GeneOntology.py @@ -320,9 +320,8 @@ class GeneOntology(Source): gene_num = gene_num.split(':')[-1] # last gene_id ...
eliminate RE for string match. avoid casting curie as a literal
py
diff --git a/opensubmit/settings.py b/opensubmit/settings.py index <HASH>..<HASH> 100644 --- a/opensubmit/settings.py +++ b/opensubmit/settings.py @@ -66,9 +66,6 @@ DATABASES = { } } -if bool(config.get('general', 'DEBUG')) and is_production: - print("WARNING: DEBUG is enabled in configuration file, despite ...
Adding logging for social auth, removing log-filling gibberish
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -21,7 +21,10 @@ class KV(object): raise KeyError def get(self, key, fallback=None): - return fallback + try: + return self[key] + except KeyError: + return fallbac...
'get' can also retrieve values
py
diff --git a/mistune.py b/mistune.py index <HASH>..<HASH> 100644 --- a/mistune.py +++ b/mistune.py @@ -298,7 +298,8 @@ class BlockLexer(object): def parse_def_footnotes(self, m): key = _keyify(m.group(1)) if key in self.def_footnotes: - raise RuntimeError('Footnote `%s` is already defi...
Don't raise when footnote is defined.
py
diff --git a/mtglib/constants.py b/mtglib/constants.py index <HASH>..<HASH> 100644 --- a/mtglib/constants.py +++ b/mtglib/constants.py @@ -30,7 +30,7 @@ COLOR_PROPER_NAMES = { 'esper': 'ubw', 'grixis': 'bru', 'jund': 'rbg', - 'naya': 'wrg' + 'naya': 'wrg', } RARITY_PATTERN = r'(.*?) ((Unc|C)omm...
I like trailing commas, now, apparently.
py
diff --git a/tests/fontInfoData_test.py b/tests/fontInfoData_test.py index <HASH>..<HASH> 100644 --- a/tests/fontInfoData_test.py +++ b/tests/fontInfoData_test.py @@ -109,11 +109,15 @@ class GetAttrWithFallbackTest(unittest.TestCase): info = TestInfoObject() os.environ["SOURCE_DATE_EPOCH"] = '151448...
test_head_created: guard env deleting in try/finally. This deletes the variable even if the test throws an exception.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -25,8 +25,12 @@ if version_info[0] == 2 or (version_info[0] == 3 and version_info[1] < 4): deps.append("requests>=2.2,!=2.12.0,!=2.12.1,<3.0") -# this version of pycryptodome is known to work and has a Windows wheel for p...
setup: choose pycrypto as a dependency using an environment variable
py
diff --git a/katcp/__init__.py b/katcp/__init__.py index <HASH>..<HASH> 100644 --- a/katcp/__init__.py +++ b/katcp/__init__.py @@ -30,3 +30,5 @@ from .client import DeviceClient, BlockingClient, CallbackClient from .sensortree import GenericSensorTree, BooleanSensorTree, AggregateSensorTree from .version import VER...
Add katcp.__version__ attribute which is rapidly becoming a standard for Python packages (and is described in PEP <I>). git-svn-id: <URL>
py
diff --git a/coconut/compiler.py b/coconut/compiler.py index <HASH>..<HASH> 100644 --- a/coconut/compiler.py +++ b/coconut/compiler.py @@ -491,7 +491,7 @@ def addskip(skips, skip): elif skip in skips: raise CoconutException("duplicate skip of line " + str(skip)) else: - skips |= set((skip,)) +...
Slightly improves addskip
py
diff --git a/treeherder/config/settings.py b/treeherder/config/settings.py index <HASH>..<HASH> 100644 --- a/treeherder/config/settings.py +++ b/treeherder/config/settings.py @@ -578,12 +578,15 @@ DATABASES = { for alias in DATABASES: # Persist database connections for 5 minutes, to avoid expensive reconnects. ...
Bug <I> - Set Django DB connection charset to utf8mb4 This allows non-BMP unicode values to be sent by the client to MySQL server, to allow insertion into tables that have been converted to utf8mb4 (currently only the `commit` table).
py
diff --git a/timeside/core/tools/test_samples.py b/timeside/core/tools/test_samples.py index <HASH>..<HASH> 100644 --- a/timeside/core/tools/test_samples.py +++ b/timeside/core/tools/test_samples.py @@ -277,7 +277,7 @@ def generateSamples(overwrite=False, samples_dir=None): # sweep 44100 stereo mp3 filename...
[core] remove unrequired element xingmux and id3v2mux in test_samples
py
diff --git a/Adafruit_GPIO/Platform.py b/Adafruit_GPIO/Platform.py index <HASH>..<HASH> 100644 --- a/Adafruit_GPIO/Platform.py +++ b/Adafruit_GPIO/Platform.py @@ -45,6 +45,9 @@ def platform_detect(): # Handle pidora distribution. elif plat.lower().find('raspberry_pi') > -1: return RASPBERRY_PI + # Handle arch di...
Update platform detection for Arch linux.
py
diff --git a/ocupy/measures.py b/ocupy/measures.py index <HASH>..<HASH> 100644 --- a/ocupy/measures.py +++ b/ocupy/measures.py @@ -344,7 +344,7 @@ def faster_roc(actuals, controls): # (add the missing triangle) if false_pos_rate[-2] == 1: auc += ((1-true_pos_rate[-3])*.5*(1-false_pos_rate[-3])) - ...
Return only auc, tpr and fpr for faster_roc
py
diff --git a/example/sparse/factorization_machine/metric.py b/example/sparse/factorization_machine/metric.py index <HASH>..<HASH> 100644 --- a/example/sparse/factorization_machine/metric.py +++ b/example/sparse/factorization_machine/metric.py @@ -53,7 +53,7 @@ class LogLossMetric(mx.metric.EvalMetric): >>> labels ...
New style exception for Python 3 (#<I>) Old style exceptions are treated as __syntax errors__ in Python 3.
py
diff --git a/windpowerlib/power_output.py b/windpowerlib/power_output.py index <HASH>..<HASH> 100644 --- a/windpowerlib/power_output.py +++ b/windpowerlib/power_output.py @@ -11,6 +11,7 @@ import numpy as np import pandas as pd from windpowerlib import tools from matplotlib import pyplot as plt +import os def p...
Plot power curves - will be deleted later
py
diff --git a/src/scriptworker/constants.py b/src/scriptworker/constants.py index <HASH>..<HASH> 100644 --- a/src/scriptworker/constants.py +++ b/src/scriptworker/constants.py @@ -386,6 +386,7 @@ DEFAULT_CONFIG: immutabledict[str, Any] = immutabledict( { "project:moz...
RELENG-<I> add mozilla vpn apk release scope to restricted scopes
py
diff --git a/openquake/commonlib/readinput.py b/openquake/commonlib/readinput.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/readinput.py +++ b/openquake/commonlib/readinput.py @@ -481,7 +481,7 @@ class SourceModelFactory(object): :param sm: the original source model :param appl...
Updated docstring [skip CI] Former-commit-id: d4c<I>ab5db<I>d<I>f4dea1b<I>ab0a0c5
py
diff --git a/openquake/commonlib/tests/oqvalidation_test.py b/openquake/commonlib/tests/oqvalidation_test.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/tests/oqvalidation_test.py +++ b/openquake/commonlib/tests/oqvalidation_test.py @@ -199,7 +199,7 @@ class OqParamTestCase(unittest.TestCase): re...
Fixed test [skip CI]
py
diff --git a/sorl/thumbnail/conf/defaults.py b/sorl/thumbnail/conf/defaults.py index <HASH>..<HASH> 100644 --- a/sorl/thumbnail/conf/defaults.py +++ b/sorl/thumbnail/conf/defaults.py @@ -51,6 +51,8 @@ THUMBNAIL_PREFIX = 'cache/' # Make sure the backend can handle the format you specify THUMBNAIL_FORMAT = 'JPEG' +TH...
Update sorl/thumbnail/conf/defaults.py Boolean to preserve thumbnail format added. Defaulted to False
py
diff --git a/src/sos/hosts.py b/src/sos/hosts.py index <HASH>..<HASH> 100755 --- a/src/sos/hosts.py +++ b/src/sos/hosts.py @@ -1355,7 +1355,7 @@ def copy_public_key(host, agent, password): import getpass password = getpass.getpass( f'Please enter password for {agent.address}: ...
Add -P option to scp for sos remote setup #<I>
py
diff --git a/sockjs/tornado/transports/websocket.py b/sockjs/tornado/transports/websocket.py index <HASH>..<HASH> 100644 --- a/sockjs/tornado/transports/websocket.py +++ b/sockjs/tornado/transports/websocket.py @@ -29,7 +29,7 @@ class WebSocketTransport(websocket.SockJSWebSocketHandler, base.BaseTransportMix ...
Let Tornado manage TCP_NODELAY of websocket As we can see from <URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -48,6 +48,7 @@ setup( 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', 'Natural Language :: English', 'Programming Language :: Python', + 'Programming Language :: Python :: 3', ...
[python3] Mark on setup.py
py
diff --git a/pywb/rewrite/test/test_rewrite_live.py b/pywb/rewrite/test/test_rewrite_live.py index <HASH>..<HASH> 100644 --- a/pywb/rewrite/test/test_rewrite_live.py +++ b/pywb/rewrite/test/test_rewrite_live.py @@ -174,6 +174,19 @@ def test_local_2_no_rewrite(): # still link rewrite in HTML assert '"/pywb/201...
rewrite: add extra test for rewriting html with <script> tag that's never closed
py
diff --git a/src/you_get/extractors/bilibili.py b/src/you_get/extractors/bilibili.py index <HASH>..<HASH> 100644 --- a/src/you_get/extractors/bilibili.py +++ b/src/you_get/extractors/bilibili.py @@ -146,7 +146,7 @@ def bilibili_download(url, output_dir='.', merge=True, info_only=False, **kwargs # multi-P ...
[bilibili] video title may have space around
py
diff --git a/lifxlan/device.py b/lifxlan/device.py index <HASH>..<HASH> 100644 --- a/lifxlan/device.py +++ b/lifxlan/device.py @@ -426,6 +426,8 @@ class Device(object): # Usually used for Get messages, or for state confirmation after Set (hence the optional payload) def req_with_resp(self, msg_type, respons...
added support for specifying several possible response types to accommodate the way MultiZone lights can respond with either a StateZone or a StateMultiZone message to a GetColorZones request
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name='tunable', version='0.0.1.dev4', description='tunable manager', - long_description='A little library allowing to set parameters.', + long_description='A little library allowing t...
Tiny bit more info text in setup.py
py
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index <HASH>..<HASH> 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2398,15 +2398,15 @@ class NDFrame(PandasObject): Parameters ---------- - method : {'backfill', 'bfill', 'pad', 'ffill', None}, default None - ...
DOC: Reorder arguments in shared fillna docstring The docstring listed 'method' before 'value' which is not consistent with the order of the arguments when calling the method.
py
diff --git a/fundamentals/__version__.py b/fundamentals/__version__.py index <HASH>..<HASH> 100644 --- a/fundamentals/__version__.py +++ b/fundamentals/__version__.py @@ -1 +1 @@ -__version__ = '1.3.3' +__version__ = '1.3.4'
requests behaving itself again - adding latest version
py
diff --git a/pyvisa/__init__.py b/pyvisa/__init__.py index <HASH>..<HASH> 100644 --- a/pyvisa/__init__.py +++ b/pyvisa/__init__.py @@ -34,5 +34,15 @@ except: # on any error just try to grab the version that is installed on the sy pass # we seem to have a local copy without any repository control or installed...
Load legacy visa_library taking user settings into account See #7
py
diff --git a/docker_squash/image.py b/docker_squash/image.py index <HASH>..<HASH> 100644 --- a/docker_squash/image.py +++ b/docker_squash/image.py @@ -11,6 +11,9 @@ import tempfile from docker_squash.errors import SquashError +if not six.PY3: + import docker_squash.lib.xtarfile + class Chdir(object):
Actually monkey patch tarfile to handle non-utf headers in PAX archives Fixes #<I>. I have no idea how I missed it...
py
diff --git a/scanpy/preprocessing/_normalization.py b/scanpy/preprocessing/_normalization.py index <HASH>..<HASH> 100644 --- a/scanpy/preprocessing/_normalization.py +++ b/scanpy/preprocessing/_normalization.py @@ -107,7 +107,7 @@ def _normalize_data(X, counts, after=None, copy=False): counts += (counts == 0) ...
fix inplace=False for sparse normalization
py
diff --git a/tests/entity_test.py b/tests/entity_test.py index <HASH>..<HASH> 100644 --- a/tests/entity_test.py +++ b/tests/entity_test.py @@ -105,6 +105,9 @@ def test_from_raw_file(fx_session, fx_sample_image, tmp_store): with something.cover.open_file(tmp_store) as f: actual = f.read() assert actua...
Fix broken build due to Wand's failure of opening SVG
py
diff --git a/helperfunctions.py b/helperfunctions.py index <HASH>..<HASH> 100644 --- a/helperfunctions.py +++ b/helperfunctions.py @@ -109,6 +109,13 @@ class QualityScoresHandler: store_cPickle_obj(self.data, output_file_path) +def quick_write(fp, header, sequence, qual): + fp.write('@%s\n' % header) + ...
lets keep this little dude here.
py
diff --git a/git/test/lib/helper.py b/git/test/lib/helper.py index <HASH>..<HASH> 100644 --- a/git/test/lib/helper.py +++ b/git/test/lib/helper.py @@ -111,6 +111,8 @@ def with_rw_directory(func): if not keep: rmtree(path) + return wrapper + def with_rw_repo(working_tree_ref, bare=F...
BF: @with_rw_directory must return decorated call As it was - many tests were simply not accounted/run at all
py
diff --git a/salt/client/ssh/ssh_py_shim.py b/salt/client/ssh/ssh_py_shim.py index <HASH>..<HASH> 100644 --- a/salt/client/ssh/ssh_py_shim.py +++ b/salt/client/ssh/ssh_py_shim.py @@ -106,8 +106,10 @@ def need_deployment(): if os.path.exists(OPTIONS.saltdir): shutil.rmtree(OPTIONS.saltdir) old_umask =...
Prevent failed os.makedirs from leaving modified umask in place
py
diff --git a/asl/resource/resource_helper.py b/asl/resource/resource_helper.py index <HASH>..<HASH> 100644 --- a/asl/resource/resource_helper.py +++ b/asl/resource/resource_helper.py @@ -39,6 +39,7 @@ def filter_from_url_arg(model_cls, query, arg): return query.filter(*exprs) operator_to_method = { + '::like...
pridanie operatora LIKE pre resource filter
py
diff --git a/aegea/ebs.py b/aegea/ebs.py index <HASH>..<HASH> 100644 --- a/aegea/ebs.py +++ b/aegea/ebs.py @@ -6,7 +6,7 @@ To delete EBS volumes or snapshots, use ``aegea rm``. from __future__ import absolute_import, division, print_function, unicode_literals -import os, sys, argparse, getpass, re, subprocess, tim...
aegea ebs: Always print create response even if attach fails
py
diff --git a/cli/cumulusci.py b/cli/cumulusci.py index <HASH>..<HASH> 100644 --- a/cli/cumulusci.py +++ b/cli/cumulusci.py @@ -273,6 +273,9 @@ def get_env_cumulusci(config): 'CUMULUSCI_PATH': config.cumulusci_path, 'PATH': os.environ.get('PATH'), } + venv = os.environ.get('VIRTUAL_ENV') + i...
Pass VIRTUAL_ENV if it is set in the environment
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -14,5 +14,5 @@ setup(name='picopt', author_email='aj@slater.net', url='http://github.com/ajslater/picopt/', py_modules=['picopt'], - requires=required + install_requires=required )
use install_requires instead of requires in setup.py"
py
diff --git a/runipy/__init__.py b/runipy/__init__.py index <HASH>..<HASH> 100644 --- a/runipy/__init__.py +++ b/runipy/__init__.py @@ -1,5 +1,3 @@ -__version__ = '0.1.3' - from ._version import get_versions __version__ = get_versions()['version'] del get_versions
runipy/__init__.py: Strip old version string.
py
diff --git a/airflow/contrib/operators/spark_submit_operator.py b/airflow/contrib/operators/spark_submit_operator.py index <HASH>..<HASH> 100644 --- a/airflow/contrib/operators/spark_submit_operator.py +++ b/airflow/contrib/operators/spark_submit_operator.py @@ -117,7 +117,7 @@ class SparkSubmitOperator(BaseOperator): ...
[AIRFLOW-<I>] Correctly pick up spark_binary from Connectin in SparkSubmitOperator (#<I>) Remove default value of spark_binary from the Operator because it's better managed on spark hook.
py
diff --git a/cloudcompose/cluster/aws/ebs.py b/cloudcompose/cluster/aws/ebs.py index <HASH>..<HASH> 100644 --- a/cloudcompose/cluster/aws/ebs.py +++ b/cloudcompose/cluster/aws/ebs.py @@ -94,7 +94,10 @@ class EBSController: if 'snapshot' not in volume: volume['snapshot'] = snapshot_id ...
Differentiate logging depending on whether snapshot is coming from a defined id or just the latest
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ except ImportError: setup( name='enocean', - version='0.60.0', + version='0.60.1', description='EnOcean serial protocol implementation', author='Kimmo Huoman', author_email='kipenroska...
Update setup.py (#<I>)
py
diff --git a/angr/state_plugins/solver.py b/angr/state_plugins/solver.py index <HASH>..<HASH> 100644 --- a/angr/state_plugins/solver.py +++ b/angr/state_plugins/solver.py @@ -291,7 +291,7 @@ class SimSolver(SimStatePlugin): #import ipdb; ipdb.set_trace() merging_occurred, self._stored_solver = self._s...
Temporarily disable common_ancestor for solver merging.
py
diff --git a/clients/ansible/girder.py b/clients/ansible/girder.py index <HASH>..<HASH> 100644 --- a/clients/ansible/girder.py +++ b/clients/ansible/girder.py @@ -34,7 +34,7 @@ except ImportError: HAS_GIRDER_CLIENT = False -__version__ = "0.2.4" +__version__ = "0.2.5" DOCUMENTATION = ''' ---
Upgrade minor version for ansible client
py
diff --git a/tests/testapp/tests/test_resource.py b/tests/testapp/tests/test_resource.py index <HASH>..<HASH> 100644 --- a/tests/testapp/tests/test_resource.py +++ b/tests/testapp/tests/test_resource.py @@ -248,7 +248,11 @@ class TestResourceRelationship(TestCase): def test_fields_to_many_many_to_many(self): ...
init many to many test, hold results
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -220,6 +220,12 @@ def test_rfe(): assert np.array_equal(tpot_obj._rfe(training_testing_data.ix[:,-3:], 0, 0.1),training_testing_data.ix[:,-3:]) +def test_select_percentile(): + """Ensure that the TPOT selec...
Added test_select_percentile
py
diff --git a/HardwareSource.py b/HardwareSource.py index <HASH>..<HASH> 100644 --- a/HardwareSource.py +++ b/HardwareSource.py @@ -453,6 +453,7 @@ class HardwareSource(Storage.Broadcaster): # these items are now live if we're playing right now. mark as such. for data_item in new_channel_to_data_item_d...
Explicitly keep data in memory during acquisition. svn r<I>
py
diff --git a/src/toil/job.py b/src/toil/job.py index <HASH>..<HASH> 100644 --- a/src/toil/job.py +++ b/src/toil/job.py @@ -810,7 +810,8 @@ class Job(object): # either the file was successfully downloaded and added to cache, or something # failed. To prevent code duplication, we...
Fixed error in readGlobalFile recursive call (resolves #<I>) resolves #<I>
py
diff --git a/emirdrp/recipes/aiv/tests/test_common.py b/emirdrp/recipes/aiv/tests/test_common.py index <HASH>..<HASH> 100644 --- a/emirdrp/recipes/aiv/tests/test_common.py +++ b/emirdrp/recipes/aiv/tests/test_common.py @@ -38,3 +38,15 @@ def test_normalize_raw(): assert b.min() >=0 assert b.max() <=1 +def t...
Add new test for normalize_raw
py
diff --git a/django_inlines/samples.py b/django_inlines/samples.py index <HASH>..<HASH> 100644 --- a/django_inlines/samples.py +++ b/django_inlines/samples.py @@ -4,6 +4,15 @@ from django_inlines.inlines import TemplateInline class YoutubeInline(TemplateInline): """ An inline that takes a youtube URL or vide...
Improved docstring for the youtube inline.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ setup( scripts = ['parsl/executors/high_throughput/process_worker_pool.py', 'parsl/executors/extreme_scale/mpi_worker_pool.py'], extras_require = { - 'parsl-visualize': ['dash', ...
Removing sqlite3 from extras since it is in the standard lib
py
diff --git a/tests/vessels_segmentation_test.py b/tests/vessels_segmentation_test.py index <HASH>..<HASH> 100644 --- a/tests/vessels_segmentation_test.py +++ b/tests/vessels_segmentation_test.py @@ -106,7 +106,7 @@ class SegmentationTest(unittest.TestCase): self.assertLess(errorrate, 0.1) - @unittest.sk...
ui_threshold_qt is back
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -53,7 +53,7 @@ setup( include_package_data=True, ext_modules=[ Extension('pysynphot.pysynphot_utils', - glob('src/*.c'), + glob('pysynphot/src/*.c'), include_dirs=[np_inclu...
Fix incorrect path preventing c-extension from building
py
diff --git a/core/manager.py b/core/manager.py index <HASH>..<HASH> 100644 --- a/core/manager.py +++ b/core/manager.py @@ -171,9 +171,9 @@ class Laniakea(object): r.cancel() if time_exceeded: - return (instances, pending) + return instances ...
Return only created instances in create_spot
py
diff --git a/cxs/libcxs/scripts/provision_agent_keys.py b/cxs/libcxs/scripts/provision_agent_keys.py index <HASH>..<HASH> 100644 --- a/cxs/libcxs/scripts/provision_agent_keys.py +++ b/cxs/libcxs/scripts/provision_agent_keys.py @@ -48,7 +48,16 @@ def get_agency_info(agency_url): return agency_info def register_a...
Add some logic for pulling from system library path if libcxs.so isn't in CWD (#<I>)
py
diff --git a/molo/core/api/importers.py b/molo/core/api/importers.py index <HASH>..<HASH> 100644 --- a/molo/core/api/importers.py +++ b/molo/core/api/importers.py @@ -915,8 +915,13 @@ class ContentImporter(BaseImporter): if _response.content: _content = json.loads(_response...
Skip translated page reference where page's locale is None - The assumption here is that the language was deleted on the foreign instance and thus we do not want to import it.
py
diff --git a/ccxt/__init__.py b/ccxt/__init__.py index <HASH>..<HASH> 100644 --- a/ccxt/__init__.py +++ b/ccxt/__init__.py @@ -417,14 +417,15 @@ class Market (object): @staticmethod def base64urlencode (s): - return base64.urlsafe_b64encode (s).replace ('=', '') + return Market.decode (base64....
fixed quoine jwt
py
diff --git a/src/amcrest/http.py b/src/amcrest/http.py index <HASH>..<HASH> 100644 --- a/src/amcrest/http.py +++ b/src/amcrest/http.py @@ -89,6 +89,9 @@ class Http(System, Network, MotionDetection, Snapshot, except LoginError as error: self._token = None raise error + ...
Unset the token when there's a communication error generating it If the camera gives a CommError (for example because it's not reachable) when calling _generate_token, the _token should be unset, as otherwise the token will be reused for every command and it won't be (re)generated correctly when the camera is back onl...
py
diff --git a/airflow/contrib/example_dags/example_qubole_operator.py b/airflow/contrib/example_dags/example_qubole_operator.py index <HASH>..<HASH> 100644 --- a/airflow/contrib/example_dags/example_qubole_operator.py +++ b/airflow/contrib/example_dags/example_qubole_operator.py @@ -12,6 +12,7 @@ # See the License for ...
[AIRFLOW-<I>] Fix typo in example_qubole_operator Closes #<I> from rupesh<I>/AIRFLOW-<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ can be converted to json. author_email='tiposchi@tiscali.it', license='GPLv3', classifiers=[ - # 'Development Status :: 5 - Production/Stable', + 'Development Status :: 5 - Production...
Mark as stable I haven't made breaking changes to the API so far, and I hope it will be possible to keep it this way.
py
diff --git a/rollbar/test/test_shortener_transform.py b/rollbar/test/test_shortener_transform.py index <HASH>..<HASH> 100644 --- a/rollbar/test/test_shortener_transform.py +++ b/rollbar/test/test_shortener_transform.py @@ -6,6 +6,7 @@ import six from rollbar import DEFAULT_LOCALS_SIZES from rollbar.lib import transfo...
fix deque test's expected repr() In Python > <I> the deque class is registered as a MutableSequence <URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -223,7 +223,8 @@ devel_hadoop = devel_minreq + hive + hdfs + webhdfs + kerberos devel_all = (sendgrid + devel + all_dbs + doc + samba + s3 + slack + crypto + oracle + docker + ssh + kubernetes + celery + azure_b...
[AIRFLOW-<I>] Fix setup.py not to install snakebite on Python3 setup.py has a logic to avoid installing snakebite on Python3, but it doesn't work. This is because the variable devel_all is now a tuple of lists. This PR fixes that variable to be a flat list and makes the logic work as expected. Closes #<I> from sekikn...
py
diff --git a/spdx/package.py b/spdx/package.py index <HASH>..<HASH> 100644 --- a/spdx/package.py +++ b/spdx/package.py @@ -61,6 +61,9 @@ class Package(object): self.description = None self.files = [] + def add_file(self, file): + self.files.append(file) + def validate(self, messages):...
Adds add_file method to Package class
py
diff --git a/openquake/calculators/views.py b/openquake/calculators/views.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/views.py +++ b/openquake/calculators/views.py @@ -754,6 +754,16 @@ def view_global_poes(token, dstore): return rst_table(tbl, header=header) +@view.add('global_gmfs') +def view_g...
Added view global_gmfs [skip CI] Former-commit-id: 5d<I>e<I>aa6fb<I>fb<I>
py
diff --git a/paegan/transport/model_controller.py b/paegan/transport/model_controller.py index <HASH>..<HASH> 100644 --- a/paegan/transport/model_controller.py +++ b/paegan/transport/model_controller.py @@ -103,7 +103,7 @@ class ModelController(object): c = geo.centroid b = geo.bounds ...
Use path kwarg in ModelController creation of Shoreline
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -20,15 +20,6 @@ try: except ImportError: from distutils.core import setup -try: - from pypandoc import convert_file -except ImportError as e: - def convert_file(f, _): - return open(f, 'r').read() -except ...
Use markdown as the description format. (#<I>) The format of the README file must be specified as markdown or pypi will reject the package.
py
diff --git a/application/briefkasten/dropbox.py b/application/briefkasten/dropbox.py index <HASH>..<HASH> 100644 --- a/application/briefkasten/dropbox.py +++ b/application/briefkasten/dropbox.py @@ -475,7 +475,8 @@ class Dropbox(object): @property def dirty_archive_url(self): - return self.settings['...
Don't require archive setting (not all instances want one)
py
diff --git a/tensorlayer/layers/core.py b/tensorlayer/layers/core.py index <HASH>..<HASH> 100644 --- a/tensorlayer/layers/core.py +++ b/tensorlayer/layers/core.py @@ -551,6 +551,7 @@ class ModelLayer(Layer): return self.model.forward(inputs) +''' class SequentialLayer(Layer): @@ -591,7 +592,9 @@ class...
sequentiallayer deprecated (commented), please use layerlist instead
py
diff --git a/ursh/indico_ursh/util.py b/ursh/indico_ursh/util.py index <HASH>..<HASH> 100644 --- a/ursh/indico_ursh/util.py +++ b/ursh/indico_ursh/util.py @@ -30,8 +30,10 @@ def request_short_url(original_url): raise ServiceUnavailable('Not configured') headers = {'Authorization': 'Bearer {api_key}'.for...
URSH: Don't raise an exeption if ursh responds with <I> URSH: URSH: Allows the client to give a user-friendly diagnostic message
py
diff --git a/src/mistclient/model.py b/src/mistclient/model.py index <HASH>..<HASH> 100644 --- a/src/mistclient/model.py +++ b/src/mistclient/model.py @@ -213,7 +213,7 @@ class Cloud(object): if id: return [self._machines[machine_id] for machine_id in self._machines.keys() - i...
adding type cast on machine id check to fix integer id mismatches
py
diff --git a/python_utils/decorators.py b/python_utils/decorators.py index <HASH>..<HASH> 100644 --- a/python_utils/decorators.py +++ b/python_utils/decorators.py @@ -10,11 +10,13 @@ def set_attributes(**kwargs): https://docs.djangoproject.com/en/3.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display ...
triggering documentation update to test readthedocs integration
py
diff --git a/citrination_client/data/tests/test_data_client.py b/citrination_client/data/tests/test_data_client.py index <HASH>..<HASH> 100644 --- a/citrination_client/data/tests/test_data_client.py +++ b/citrination_client/data/tests/test_data_client.py @@ -22,7 +22,7 @@ client = parent_client.data dataset_name = "Tu...
Keep Current Dir Marker For Test Coverage
py
diff --git a/fusesoc/build/quartus.py b/fusesoc/build/quartus.py index <HASH>..<HASH> 100644 --- a/fusesoc/build/quartus.py +++ b/fusesoc/build/quartus.py @@ -125,6 +125,8 @@ clean: 'vhdlSource-93', 'vhdlSource-2008']: _type = 'VHDL_FI...
Handle qip files in Quartus backend
py
diff --git a/src/svg/path/path.py b/src/svg/path/path.py index <HASH>..<HASH> 100644 --- a/src/svg/path/path.py +++ b/src/svg/path/path.py @@ -293,12 +293,15 @@ class Path(MutableSequence): def __setitem__(self, index, value): self._segments[index] = value + self._lengths = None def __deli...
The ._length attribute needs to be cleared when the path is modified.
py
diff --git a/zipline/assets/asset_writer.py b/zipline/assets/asset_writer.py index <HASH>..<HASH> 100644 --- a/zipline/assets/asset_writer.py +++ b/zipline/assets/asset_writer.py @@ -161,9 +161,6 @@ class AssetDBWriter(with_metaclass(ABCMeta)): Returns data in standard format. """ - def __init__(self...
MAINT: Removes unused __init__ from AssetDBWriter
py
diff --git a/brabeion/tasks.py b/brabeion/tasks.py index <HASH>..<HASH> 100644 --- a/brabeion/tasks.py +++ b/brabeion/tasks.py @@ -3,5 +3,7 @@ from celery.task import Task class AsyncBadgeAward(Task): + ignore_result = True + def run(self, badge, state, **kwargs): badge.actually_possibly_award...
Added ignore_result to the celery task.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ with open('requirements.txt', 'r') as f: setuptools.setup( name="etk", - version="2.0.7", + version="2.0.8", author="Amandeep Singh", author_email="amandeep.s.saggu@gmail.com", descr...
one more update for pypi
py
diff --git a/qiime_tools/util.py b/qiime_tools/util.py index <HASH>..<HASH> 100644 --- a/qiime_tools/util.py +++ b/qiime_tools/util.py @@ -131,6 +131,12 @@ def parse_taxonomy_table(idtaxFNH): def split_phylogeny(p, level='s'): + """ + Return the phylogenetic taxonomy of bacteria in string 'p' to level specified. +...
Added docstring for split_phylogeny()
py
diff --git a/src/grid_plot_wireframe.py b/src/grid_plot_wireframe.py index <HASH>..<HASH> 100644 --- a/src/grid_plot_wireframe.py +++ b/src/grid_plot_wireframe.py @@ -123,10 +123,11 @@ def plot_wireframe(options): ) if options.plot_elec_nr: - for nr, (x, y) in enumerate(grid.electrodes): - ...
add -n switch to grid_plot_wireframe: show electrode numbers
py
diff --git a/GPy/testing/plotting_tests.py b/GPy/testing/plotting_tests.py index <HASH>..<HASH> 100644 --- a/GPy/testing/plotting_tests.py +++ b/GPy/testing/plotting_tests.py @@ -66,7 +66,7 @@ def _sequenceEqual(a, b): def _notFound(path): raise IOError('File {} not in baseline') -def _image_comparison(baseline...
[testing] BGPLVM
py
diff --git a/abilian/web/forms/fields.py b/abilian/web/forms/fields.py index <HASH>..<HASH> 100644 --- a/abilian/web/forms/fields.py +++ b/abilian/web/forms/fields.py @@ -214,26 +214,28 @@ class Select2Field(SelectField): """ widget = Select2() - def iter_choices(self): - choices = self.choices - if call...
Select2 fields: choices can be a callable for dynamic lists
py
diff --git a/skorch/net.py b/skorch/net.py index <HASH>..<HASH> 100644 --- a/skorch/net.py +++ b/skorch/net.py @@ -483,7 +483,8 @@ class NeuralNet(object): y_pred = self.infer(Xi, **fit_params) loss = self.get_loss(y_pred, yi, X=Xi, training=True) loss.backward() - self.notify('on_grad...
Resolve #<I> by passing named params as list
py
diff --git a/cmd2.py b/cmd2.py index <HASH>..<HASH> 100755 --- a/cmd2.py +++ b/cmd2.py @@ -305,7 +305,7 @@ def options(option_list, arg_desc="arg"): # Can we access the clipboard, always true on Windows and Mac, but only sometimes on Linux can_clip = True -if sys.platform == 'linux': +if sys.platform.startswith('li...
Fixed a sys.platform check So it turns out that on Linux, it sys.platform is "linux2" in Python 2 and "linux" in Python 3, so if doing a comparsion, need to do a .startswith() instead of a ==
py
diff --git a/ratcave/graphics/core/mesh.py b/ratcave/graphics/core/mesh.py index <HASH>..<HASH> 100644 --- a/ratcave/graphics/core/mesh.py +++ b/ratcave/graphics/core/mesh.py @@ -127,7 +127,7 @@ class Mesh(object): #: Bool: if the Mesh is visible for rendering. If false, will not be rendered. self.v...
removed Mesh.__loaded, as it didn't really do anything good, and obfuscated the code.
py
diff --git a/s3transfer/__init__.py b/s3transfer/__init__.py index <HASH>..<HASH> 100644 --- a/s3transfer/__init__.py +++ b/s3transfer/__init__.py @@ -143,7 +143,7 @@ from s3transfer.exceptions import RetriesExceededError, S3UploadFailedError __author__ = 'Amazon Web Services' -__version__ = '0.1.8' +__version__ =...
Bumping version to <I>
py
diff --git a/indra/tools/model_checker.py b/indra/tools/model_checker.py index <HASH>..<HASH> 100644 --- a/indra/tools/model_checker.py +++ b/indra/tools/model_checker.py @@ -233,6 +233,7 @@ class ModelChecker(object): obj_obs.name, ...
Reverse paths so observable is last
py
diff --git a/ignite/engines/engine.py b/ignite/engines/engine.py index <HASH>..<HASH> 100644 --- a/ignite/engines/engine.py +++ b/ignite/engines/engine.py @@ -1,6 +1,5 @@ import logging import time -from abc import ABCMeta, abstractmethod from enum import Enum from ignite._utils import _to_hours_mins_secs
Update engine.py (#<I>) Remove useless imports
py
diff --git a/odl/trafos/__init__.py b/odl/trafos/__init__.py index <HASH>..<HASH> 100644 --- a/odl/trafos/__init__.py +++ b/odl/trafos/__init__.py @@ -21,7 +21,7 @@ from __future__ import absolute_import -__all__ = ('fourier', 'wavelet') +__all__ = () # Propagate names defined in __all__ of all submodules int...
MAINT: remove stuff from __all__ in subpackage trafos
py
diff --git a/bugwarrior/services/gitlab.py b/bugwarrior/services/gitlab.py index <HASH>..<HASH> 100644 --- a/bugwarrior/services/gitlab.py +++ b/bugwarrior/services/gitlab.py @@ -80,7 +80,7 @@ class GitlabIssue(Issue): 'label': 'Gitlab Type', }, NUMBER: { - 'type': 'numeric', +...
gitlab: make the gitlabnumber UDA a string (fixes #<I>) The gitlabnumber's of todos on gitlab.com have grown beyond the limits of the numeric type, and that may happen on other instances too.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,25 +1,9 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -from setuptools import setup, Command -import subprocess +from setuptools import setup import inflection - -class PyTest(Command): - user_options = [] - - ...
Removed Pytest integration from setup.py
py
diff --git a/backtrader/indicators/basicops.py b/backtrader/indicators/basicops.py index <HASH>..<HASH> 100644 --- a/backtrader/indicators/basicops.py +++ b/backtrader/indicators/basicops.py @@ -32,6 +32,7 @@ class PeriodN(Indicator): params = (('period', 1),) def __init__(self): + super(PeriodN, sel...
super added to PeriodN __init__
py
diff --git a/salt/output/__init__.py b/salt/output/__init__.py index <HASH>..<HASH> 100644 --- a/salt/output/__init__.py +++ b/salt/output/__init__.py @@ -39,9 +39,8 @@ def try_printout(data, out, opts): return get_printout(out, opts)(data).rstrip() except (KeyError, AttributeError): log.debug(tr...
Don't *pop* the outputter, just pass opts of None
py
diff --git a/safe_qgis/impact_statistics/aggregator.py b/safe_qgis/impact_statistics/aggregator.py index <HASH>..<HASH> 100644 --- a/safe_qgis/impact_statistics/aggregator.py +++ b/safe_qgis/impact_statistics/aggregator.py @@ -941,6 +941,18 @@ class Aggregator(QtCore.QObject): line_attribute_dict[self....
Add cheking for null target field
py
diff --git a/.sphinx/conf.py b/.sphinx/conf.py index <HASH>..<HASH> 100644 --- a/.sphinx/conf.py +++ b/.sphinx/conf.py @@ -106,6 +106,11 @@ html_context = { source_suffix = ".md" +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This ...
doc: exclude README.md from doc build
py
diff --git a/kconfiglib.py b/kconfiglib.py index <HASH>..<HASH> 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -1252,8 +1252,7 @@ class Config(object): "MODULES, like older versions of the C " "implementation did when 'option modules' " ...
linenr is non-None if filename is non-None. Piggyback vertical nit.
py