diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/doctr/local.py b/doctr/local.py
index <HASH>..<HASH> 100644
--- a/doctr/local.py
+++ b/doctr/local.py
@@ -210,7 +210,11 @@ def generate_ssh_key(note, keypath='github_deploy_key'):
raise RuntimeError("SSH key generation failed")
with open(keypath + ".pub") as f:
- return f.read()
+ ... | Delete the .pub key file There is no need to keep it around, and it just confuses people. If the public key is needed again, the best thing to do is to just run doctr configure again to generate a new set of keys. Fixes #<I>. | py |
diff --git a/Exscript/util/crypt.py b/Exscript/util/crypt.py
index <HASH>..<HASH> 100644
--- a/Exscript/util/crypt.py
+++ b/Exscript/util/crypt.py
@@ -369,9 +369,10 @@ def otp(password, seed, sequence):
raise ValueError('seed composition')
if sequence < 0:
raise ValueError('sequence')
- if... | fix: previous commit also applies for Python 2 | py |
diff --git a/Pynac/Elements.py b/Pynac/Elements.py
index <HASH>..<HASH> 100644
--- a/Pynac/Elements.py
+++ b/Pynac/Elements.py
@@ -20,10 +20,10 @@ class Quad:
@classmethod
def from_dynacRepr(cls, pynacRepr):
+ '''
+ Construct a ``Quad`` instance from the Pynac lattice element
+ '''
... | Fixed bug that stopped Elements.py building | py |
diff --git a/django_extensions/management/commands/dumpscript.py b/django_extensions/management/commands/dumpscript.py
index <HASH>..<HASH> 100644
--- a/django_extensions/management/commands/dumpscript.py
+++ b/django_extensions/management/commands/dumpscript.py
@@ -517,9 +517,7 @@ class BasicImportHelper(object):
... | Remove a comment for Django < <I> in dumpscript.py. | py |
diff --git a/colab/urls.py b/colab/urls.py
index <HASH>..<HASH> 100644
--- a/colab/urls.py
+++ b/colab/urls.py
@@ -37,6 +37,7 @@ urlpatterns = patterns('',
url(r'^trac/', include('colab.proxy.trac.urls')),
url(r'^gitlab/', include('colab.proxy.gitlab.urls')),
+ url(r'^social/', include('colab.proxy.noosf... | Adding url dispatcher for noosfero | py |
diff --git a/flask_slither/validation.py b/flask_slither/validation.py
index <HASH>..<HASH> 100644
--- a/flask_slither/validation.py
+++ b/flask_slither/validation.py
@@ -11,9 +11,9 @@ class NoValidation():
class Validation():
- errors = {}
def validate(self, data, **kwargs):
+ self.errors = {}
... | Moved validation errors dict into method to avoid request bleedover | py |
diff --git a/ricecooker/classes/files.py b/ricecooker/classes/files.py
index <HASH>..<HASH> 100644
--- a/ricecooker/classes/files.py
+++ b/ricecooker/classes/files.py
@@ -430,6 +430,8 @@ class YouTubeSubtitleFile(File):
"""
def __init__(self, youtube_id, language=None, **kwargs):
self.youtube_url = '... | Added backward compatibility handler, in case language_obj passed in to YouTubeSubtitleFile obj | py |
diff --git a/openquake/hazardlib/contexts.py b/openquake/hazardlib/contexts.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/contexts.py
+++ b/openquake/hazardlib/contexts.py
@@ -420,6 +420,7 @@ class ContextMaker(object):
for par in self.REQUIRES_DISTANCES | {'rrup'}:
seta... | Added comment [ci skip] | py |
diff --git a/wfdb/io/record.py b/wfdb/io/record.py
index <HASH>..<HASH> 100644
--- a/wfdb/io/record.py
+++ b/wfdb/io/record.py
@@ -5049,6 +5049,7 @@ def wrsamp(
comments=None,
base_time=None,
base_date=None,
+ base_datetime=None,
write_dir="",
):
"""
@@ -5097,6 +5098,9 @@ def wrsamp(
... | wrsamp: add base_datetime argument. Allow passing base_datetime to wfdb.wrsamp, as an alternative to specifying both base_date and base_time. Note that it is an error to specify base_datetime while also specifying base_date or base_time, and we raise a TypeError in that case. | py |
diff --git a/dusty/schemas/base_schema_class.py b/dusty/schemas/base_schema_class.py
index <HASH>..<HASH> 100644
--- a/dusty/schemas/base_schema_class.py
+++ b/dusty/schemas/base_schema_class.py
@@ -3,6 +3,7 @@ from copy import deepcopy
import glob
import os
import yaml
+import re
from schemer import ValidationEx... | enusre that all images do not allow camel case because of Docker Compose's image naming convention | py |
diff --git a/nipap/nipap/nipap.py b/nipap/nipap/nipap.py
index <HASH>..<HASH> 100644
--- a/nipap/nipap/nipap.py
+++ b/nipap/nipap/nipap.py
@@ -2739,8 +2739,8 @@ class Nipap:
if parent_prefix['vrf_id']:
vrf_id = parent_prefix['vrf_id']
query_parent_prefix = " (p1.vrf_id = %s AN... | Woohoo, fix parent_prefix This has now officially entered the stage of silly as #<I> has been the most reopened and closed bug in history. This fixes it though - really! Relates to good ol' #<I>. Fixes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -181,6 +181,6 @@ setup(
"Framework :: Django",
],
install_requires=[
- "Django",
+ "Django>=1.3",
],
) | Be smarter with django requirements version | py |
diff --git a/spyderlib/widgets/sourcecode/codeeditor.py b/spyderlib/widgets/sourcecode/codeeditor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/sourcecode/codeeditor.py
+++ b/spyderlib/widgets/sourcecode/codeeditor.py
@@ -45,6 +45,7 @@ from spyderlib.utils.qthelpers import (add_actions, create_action, keybindi... | codeeditor/rope: Encode project path in DEFAULT_ENCODING It seems rope can't work with unicode strings in filesystem paths | py |
diff --git a/examples/session_handling.py b/examples/session_handling.py
index <HASH>..<HASH> 100644
--- a/examples/session_handling.py
+++ b/examples/session_handling.py
@@ -18,7 +18,7 @@ def load_cookies(filename):
def save_cookies(filename, cookies):
with open(filename, "w") as f:
- json.dump(f, cooki... | First Object then File Pointer json.dump() receives object as first argument and File Pointer as 2nd argument. | py |
diff --git a/fabfile.py b/fabfile.py
index <HASH>..<HASH> 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -85,5 +85,5 @@ def release():
build()
print("Releasing %s version %s." % (env.projname, env.version))
local("git tag %s" % env.version)
- local("python setup.py sdist upload")
+ local('twine upload... | fabfile: Use `twine upload` instead of `setup.py` upload's facility. Twine explicitly sends the credentials via SSL/TLS, while setup.py uploads them as plain text, according to the documentation of twine. | py |
diff --git a/area4/__init__.py b/area4/__init__.py
index <HASH>..<HASH> 100644
--- a/area4/__init__.py
+++ b/area4/__init__.py
@@ -12,6 +12,7 @@ divider1 = str("------------------------")
divider2 = str("________________________")
divider3 = str("........................")
divider4 = str("⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛")
+custom_div... | Added support for custom dividers | py |
diff --git a/hangups/ui/__main__.py b/hangups/ui/__main__.py
index <HASH>..<HASH> 100644
--- a/hangups/ui/__main__.py
+++ b/hangups/ui/__main__.py
@@ -546,11 +546,18 @@ class ConversationWidget(urwid.WidgetWrap):
# Ignore if the user hasn't typed a message.
if len(text) == 0:
return
+ ... | Add temporary UI for testing image uploads \image <filename> | py |
diff --git a/moderngl/texture.py b/moderngl/texture.py
index <HASH>..<HASH> 100644
--- a/moderngl/texture.py
+++ b/moderngl/texture.py
@@ -377,7 +377,9 @@ class Texture:
Args:
data (Union[bytes, Buffer]): The pixel data.
- viewport (tuple): The sub-section if the texture t... | Texture.write: Elaborate further on viewport | py |
diff --git a/backtrader/plot/plot.py b/backtrader/plot/plot.py
index <HASH>..<HASH> 100644
--- a/backtrader/plot/plot.py
+++ b/backtrader/plot/plot.py
@@ -679,7 +679,7 @@ class Plot(with_metaclass(MetaParams, object)):
if x.plotinfo.plotmaster is not None:
key = x.plotinfo.plotmaster
- ... | Compare to None to avoid falling into overloaded operator | py |
diff --git a/py3o/template/main.py b/py3o/template/main.py
index <HASH>..<HASH> 100644
--- a/py3o/template/main.py
+++ b/py3o/template/main.py
@@ -220,11 +220,12 @@ class Template(object):
raise ValueError(msg)
# find out if the instruction is inside a table
- if link.getparent().getp... | Save parent in variable to not reevaluate it | py |
diff --git a/actstream/apps.py b/actstream/apps.py
index <HASH>..<HASH> 100644
--- a/actstream/apps.py
+++ b/actstream/apps.py
@@ -17,6 +17,8 @@ class ActstreamConfig(AppConfig):
try:
from jsonfield.fields import JSONField
except ImportError:
- raise ImproperlyC... | fix flake error in apps.py | py |
diff --git a/websocket.py b/websocket.py
index <HASH>..<HASH> 100644
--- a/websocket.py
+++ b/websocket.py
@@ -25,7 +25,7 @@ from urlparse import urlparse
import os
import struct
import uuid
-import sha
+import hashlib
import base64
import logging
@@ -443,7 +443,7 @@ class WebSocket(object):
result = re... | sha module is deprecated replaced with hashlib module | py |
diff --git a/skyfield/positionlib.py b/skyfield/positionlib.py
index <HASH>..<HASH> 100644
--- a/skyfield/positionlib.py
+++ b/skyfield/positionlib.py
@@ -95,7 +95,7 @@ class ICRS(object):
Distance(r_AU))
def _ecliptic_vector(self):
- epsilon = mean_obliquity(T0) * ASEC2RAD # should T0 b... | Remove question in comment now that we have answer | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,4 +17,9 @@ setup(
author_email='s.aleyaasin@gmail.com',
description='Python wrapper for Stanford CoreNLP',
long_description=long_description(),
+ classifiers=(
+ "Programming Language :: Python :: ... | Add classifiers to setup.py | py |
diff --git a/pre_commit/languages/docker.py b/pre_commit/languages/docker.py
index <HASH>..<HASH> 100644
--- a/pre_commit/languages/docker.py
+++ b/pre_commit/languages/docker.py
@@ -78,9 +78,11 @@ def run_hook(repo_cmd_runner, hook, file_args):
cmd = (
'docker', 'run',
'--rm',
- '-v', '{}... | Fix user so we can mount volumes as RW | py |
diff --git a/fost_authn/signature.py b/fost_authn/signature.py
index <HASH>..<HASH> 100644
--- a/fost_authn/signature.py
+++ b/fost_authn/signature.py
@@ -1,5 +1,6 @@
import hashlib
import hmac
+import logging
def sha1_hmac(secret, document):
@@ -20,4 +21,6 @@ def fost_hmac_signature(secret, method, path, timest... | Added some logging output to the signature generation function. | py |
diff --git a/django_extensions/management/commands/runjob.py b/django_extensions/management/commands/runjob.py
index <HASH>..<HASH> 100644
--- a/django_extensions/management/commands/runjob.py
+++ b/django_extensions/management/commands/runjob.py
@@ -22,7 +22,7 @@ class Command(LabelCommand):
job = get_job... | fix small mistake in ronjob.py swap job_name and app_name in an error message | py |
diff --git a/tests/unit/utils/test_schema.py b/tests/unit/utils/test_schema.py
index <HASH>..<HASH> 100644
--- a/tests/unit/utils/test_schema.py
+++ b/tests/unit/utils/test_schema.py
@@ -12,6 +12,7 @@ from tests.support.unit import TestCase, skipIf
# Import Salt Libs
import salt.utils.json
+import salt.utils.string... | Fix issue caused by unicode literals | py |
diff --git a/tests/test_properties.py b/tests/test_properties.py
index <HASH>..<HASH> 100644
--- a/tests/test_properties.py
+++ b/tests/test_properties.py
@@ -81,7 +81,7 @@ class TestProperties(TestBetamax):
self.assertTrue(wheel_model.id == part_of_spokes_model.id)
- # 1.12
+ # 1.11
def test_ed... | - release <I> instead of <I> | py |
diff --git a/yowsup/env/env_s40.py b/yowsup/env/env_s40.py
index <HASH>..<HASH> 100644
--- a/yowsup/env/env_s40.py
+++ b/yowsup/env/env_s40.py
@@ -7,7 +7,7 @@ class S40YowsupEnv(YowsupEnv):
_OS_VERSION = "14.26"
_DEVICE_NAME = "302"
_MANUFACTURER = "Nokia"
- _TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh50... | S<I>: included timestamp in _TOKEN_STRING as previous versions. Now register works again | py |
diff --git a/bin/build.py b/bin/build.py
index <HASH>..<HASH> 100755
--- a/bin/build.py
+++ b/bin/build.py
@@ -130,8 +130,8 @@ def main():
for j in range(ncm)
] for dataset in datasets for csi in range(cs) ])
- print 'series', planet + 1, a.shape
- ... | Renamed the data files to "jpl-*" to give credit where credit is due. | py |
diff --git a/great_expectations/jupyter_ux/__init__.py b/great_expectations/jupyter_ux/__init__.py
index <HASH>..<HASH> 100755
--- a/great_expectations/jupyter_ux/__init__.py
+++ b/great_expectations/jupyter_ux/__init__.py
@@ -212,8 +212,6 @@ cooltip_style_element = """<style type="text/css">
def display_column_expect... | Fix bug that was breaking imports of great_expectations.jupyter_ux - unused default function arguments of the form: section_renderer=render.renderer.column_section_renderer.ExpectationSuiteColumnSectionRenderer, view_renderer=render.view.view.DefaultJinjaSectionView, were breaking imports | py |
diff --git a/scripts/utils/strings.py b/scripts/utils/strings.py
index <HASH>..<HASH> 100644
--- a/scripts/utils/strings.py
+++ b/scripts/utils/strings.py
@@ -1,7 +1,8 @@
"""
"""
-__all__ = ['rep_chars']
+__all__ = ['rep_chars', 'single_spaces']
+
def rep_chars(string, chars, rep = ''):
for c in chars:
@@ -... | MAINT: add 'single_spaces' to '__all__' variable for easy import. | py |
diff --git a/manticore/ethereum/__init__.py b/manticore/ethereum/__init__.py
index <HASH>..<HASH> 100644
--- a/manticore/ethereum/__init__.py
+++ b/manticore/ethereum/__init__.py
@@ -928,7 +928,7 @@ class ManticoreEVM(Manticore):
raise TypeError("code bad type")
# Check types
- if not isi... | Fix type check for caller arg in ManticoreEVM._transaction (#<I>) The error was introduced in commit e<I>a. | py |
diff --git a/steam/webapi.py b/steam/webapi.py
index <HASH>..<HASH> 100644
--- a/steam/webapi.py
+++ b/steam/webapi.py
@@ -38,7 +38,7 @@ def webapi_request(path, method='GET', caller=None, params={}):
kwargs = {'params': params} if method == "GET" else {'data': params}
f = getattr(requests, method.lower())
... | set stream arg to false for all requests | py |
diff --git a/pyghmi/ipmi/private/serversession.py b/pyghmi/ipmi/private/serversession.py
index <HASH>..<HASH> 100644
--- a/pyghmi/ipmi/private/serversession.py
+++ b/pyghmi/ipmi/private/serversession.py
@@ -317,7 +317,9 @@ class IpmiServer(object):
self.serversocket, data[16:], self.uuid,... | Correct the offset to adjust for IPMIv2 For IPMIv2 sessionless data, there is not <I> bytes to strip out, but instead only 2. I suspect because reading the sample packet, the last row unique values were added without looking at the context. Correcting for context, the IPMIv2 header is only two bytes longer. Change-... | py |
diff --git a/thumbor/filters/blur.py b/thumbor/filters/blur.py
index <HASH>..<HASH> 100644
--- a/thumbor/filters/blur.py
+++ b/thumbor/filters/blur.py
@@ -39,7 +39,7 @@ class Filter(BaseFilter):
if sigma == 0:
sigma = radius
if radius > MAX_RADIUS:
- raise RuntimeError("Radius ... | Fixing raising error to just use max_radius for blur | py |
diff --git a/xarray/tests/test_plot.py b/xarray/tests/test_plot.py
index <HASH>..<HASH> 100644
--- a/xarray/tests/test_plot.py
+++ b/xarray/tests/test_plot.py
@@ -2581,7 +2581,6 @@ class TestDatetimePlot(PlotTestCase):
self.darray.plot.line()
-@pytest.mark.xfail(reason="recent versions of nc-time-axis and ... | Remove xfail decorator from nc-time-axis tests (#<I>) | py |
diff --git a/openquake/__init__.py b/openquake/__init__.py
index <HASH>..<HASH> 100644
--- a/openquake/__init__.py
+++ b/openquake/__init__.py
@@ -57,7 +57,7 @@ import os
__version__ = (
0, # major
4, # minor
- 2, # sprint number
+ 3, # sprint number
0) # release date (seconds since the "Epoc... | increment the rev. number to <I> as a preparation for the forthcoming release Former-commit-id: c<I>bbfb0d<I>e<I>bedeaca<I>b<I>ec<I>f<I> | py |
diff --git a/salt/state.py b/salt/state.py
index <HASH>..<HASH> 100644
--- a/salt/state.py
+++ b/salt/state.py
@@ -2133,6 +2133,9 @@ class State(object):
'''
Check to see if this low chunk has been paused
'''
+ if not self.jid:
+ # Can't pause on salt-ssh since we can't trac... | don't allow pause on salt-ssh | py |
diff --git a/masonite/routes.py b/masonite/routes.py
index <HASH>..<HASH> 100644
--- a/masonite/routes.py
+++ b/masonite/routes.py
@@ -1,7 +1,8 @@
''' Module for the Routing System '''
-import json
-import re
import importlib
+import re
+from pydoc import locate
+
from config import middleware
class Route():
@@ -... | fixed that middleware is now called by string | py |
diff --git a/repex/repex.py b/repex/repex.py
index <HASH>..<HASH> 100644
--- a/repex/repex.py
+++ b/repex/repex.py
@@ -106,10 +106,10 @@ def iterate(configfile, variables=None, verbose=False):
def handle_path(p, variables, verbose=False):
_set_global_verbosity_level(verbose)
- if os.path.isfile(p['path']):
-... | added verbose mode to get_all_files | py |
diff --git a/openquake/calculators/risk/general.py b/openquake/calculators/risk/general.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/risk/general.py
+++ b/openquake/calculators/risk/general.py
@@ -472,9 +472,18 @@ class Block(object):
"""A block is a collection of sites to compute."""
def __in... | Added docstring to Block constructor | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ setup(name='persephone',
author='Oliver Adams',
author_email='oliver.adams@gmail.com',
license='GPLv3',
- packages=['persephone'],
+ packages=['persephone', 'persephone.datasets'],
... | Added persephone.datasets to setup.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -56,11 +56,11 @@ setup(
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.6",
"Prog... | Update minimum required Python version to <I> | py |
diff --git a/redlock/lock.py b/redlock/lock.py
index <HASH>..<HASH> 100644
--- a/redlock/lock.py
+++ b/redlock/lock.py
@@ -106,6 +106,14 @@ class RedLock(object):
def __exit__(self, exc_type, exc_value, traceback):
self.release()
+ def _total_ms(self, delta):
+ """
+ Get the total numbe... | Correct elapsed_milliseconds calculation The `.microseconds` attribute of a timedelta only returns the .microseconds part of the (days, seconds, microseconds) that the timedelta stores. This means that if the lock(s) took longer than a second to acquire or the lock may incorrectly be acquired. | py |
diff --git a/satpy/readers/fci_l1c_nc.py b/satpy/readers/fci_l1c_nc.py
index <HASH>..<HASH> 100644
--- a/satpy/readers/fci_l1c_nc.py
+++ b/satpy/readers/fci_l1c_nc.py
@@ -307,10 +307,10 @@ class FCIL1cNCFileHandler(NetCDF4FileHandler):
"""Get the auxiliary data arrays using the index map."""
# get ind... | change index_map subtraction value to accomodate per-chunk vector variables | 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
@@ -277,6 +277,11 @@ class TargetAndroid(Target):
cmd('git clean -dxf', cwd=pa_dir)
cmd('git pull origin master', cwd=pa_di... | allow to use branch in python-for-android | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ Created on Oct 15, 2014
'''
from distutils.core import setup
setup(name='pysle',
- version='1.2.0',
+ version='1.3.0',
author='Tim Mahrt',
author_email='timmahrt@gmail.com',
packa... | DOCUMENTATION: Version changed to <I> in the setup.py file | py |
diff --git a/src/asphalt/sqlalchemy/component.py b/src/asphalt/sqlalchemy/component.py
index <HASH>..<HASH> 100644
--- a/src/asphalt/sqlalchemy/component.py
+++ b/src/asphalt/sqlalchemy/component.py
@@ -6,7 +6,6 @@ from typing import Any, Callable, Dict, List, Optional, Tuple, Union
from asphalt.core import (
C... | Switched to native async generators | py |
diff --git a/isort/isort.py b/isort/isort.py
index <HASH>..<HASH> 100644
--- a/isort/isort.py
+++ b/isort/isort.py
@@ -447,6 +447,11 @@ class SortImports(object):
line = self._strip_comments(self._get_line())
import_string += "\n" + line
+ if import_type == "from":... | Implement fix for issue #<I> | py |
diff --git a/napalm/base/mock.py b/napalm/base/mock.py
index <HASH>..<HASH> 100644
--- a/napalm/base/mock.py
+++ b/napalm/base/mock.py
@@ -33,7 +33,7 @@ def raise_exception(result):
def is_mocked_method(method):
- mocked_methods = []
+ mocked_methods = ['traceroute', 'ping']
if method.startswith("get_")... | Add possibility to mock traceroute and ping results | py |
diff --git a/ibis/sql/tests/test_compiler.py b/ibis/sql/tests/test_compiler.py
index <HASH>..<HASH> 100644
--- a/ibis/sql/tests/test_compiler.py
+++ b/ibis/sql/tests/test_compiler.py
@@ -791,6 +791,32 @@ FROM (
context = query.context
assert not context.need_aliases()
+ def test_table_names_overl... | TST: skipped unit test for #<I>, revisit in future | py |
diff --git a/drivers/python/rethinkdb.py b/drivers/python/rethinkdb.py
index <HASH>..<HASH> 100644
--- a/drivers/python/rethinkdb.py
+++ b/drivers/python/rethinkdb.py
@@ -326,7 +326,7 @@ class val(Term):
if isinstance(self.value, bool):
parent.type = p.Term.BOOL
parent.valuebool = sel... | Adding floats to the client | py |
diff --git a/unixccompiler.py b/unixccompiler.py
index <HASH>..<HASH> 100644
--- a/unixccompiler.py
+++ b/unixccompiler.py
@@ -196,7 +196,10 @@ class UnixCCompiler(CCompiler):
# the configuration data stored in the Python installation, so
# we use this hack.
compiler = os.path.basename(syscon... | MacOSX linker doesn't understand -R flag at all, no matter how you feed it the flag. Punt and return a -L flag instead (returning "" gums up the command to be forked). | py |
diff --git a/ELiDE/ELiDE/board/board.py b/ELiDE/ELiDE/board/board.py
index <HASH>..<HASH> 100644
--- a/ELiDE/ELiDE/board/board.py
+++ b/ELiDE/ELiDE/board/board.py
@@ -981,6 +981,16 @@ class BoardScatterPlane(ScatterPlane):
return True
return super().on_touch_down(touch)
+ def on_transform_wit... | Clamp BoardScatterPlane to the board | py |
diff --git a/zounds/learn/util.py b/zounds/learn/util.py
index <HASH>..<HASH> 100644
--- a/zounds/learn/util.py
+++ b/zounds/learn/util.py
@@ -52,6 +52,13 @@ def model_hash(model):
return h.hexdigest()
+def gradients(network):
+ for n, p in network.named_parameters():
+ g = p.grad
+ if g is No... | Add utility function to return gradients of network | py |
diff --git a/dask_kubernetes/core.py b/dask_kubernetes/core.py
index <HASH>..<HASH> 100644
--- a/dask_kubernetes/core.py
+++ b/dask_kubernetes/core.py
@@ -87,8 +87,8 @@ class Pod(ProcessInterface):
raise e
async def close(self, **kwargs):
- name, namespace = self._pod.metadata.name, s... | ensure Pod.close() succeeds when pod has already been removed (#<I>) | py |
diff --git a/instaloader/instaloadercontext.py b/instaloader/instaloadercontext.py
index <HASH>..<HASH> 100644
--- a/instaloader/instaloadercontext.py
+++ b/instaloader/instaloadercontext.py
@@ -210,8 +210,8 @@ class InstaloaderContext:
# Override default timeout behavior.
# Need to silence mypy bug f... | Fix Login Error (#<I>) taking csrf token from login page as it is empty using the old url Fixes #<I>. | py |
diff --git a/salt/minion.py b/salt/minion.py
index <HASH>..<HASH> 100644
--- a/salt/minion.py
+++ b/salt/minion.py
@@ -843,11 +843,13 @@ class Syndic(Minion):
master to authenticate with a higher level master.
'''
def __init__(self, opts):
+ interface = opts.get('interface')
self._syndic ... | Fix #<I> When the syndic merges minion and master opts interface needs to persist | py |
diff --git a/deal/linter/_extractors/common.py b/deal/linter/_extractors/common.py
index <HASH>..<HASH> 100644
--- a/deal/linter/_extractors/common.py
+++ b/deal/linter/_extractors/common.py
@@ -97,7 +97,10 @@ def infer(expr) -> Tuple:
if not isinstance(expr, astroid.node_classes.NodeNG):
return tuple()
... | fix one more flaky thing from astroid | py |
diff --git a/sdk/python/sawtooth_processor_test/message_factory.py b/sdk/python/sawtooth_processor_test/message_factory.py
index <HASH>..<HASH> 100644
--- a/sdk/python/sawtooth_processor_test/message_factory.py
+++ b/sdk/python/sawtooth_processor_test/message_factory.py
@@ -248,7 +248,8 @@ class MessageFactory(object):... | Fix delete response in testing message factory Fixes the response generated by the `create_delete_response()` method of the message_factory used for testing. This method was not setting the status of the response. | py |
diff --git a/astrocats/catalog/quantity.py b/astrocats/catalog/quantity.py
index <HASH>..<HASH> 100644
--- a/astrocats/catalog/quantity.py
+++ b/astrocats/catalog/quantity.py
@@ -1,6 +1,6 @@
"""Class for representing spectra.
"""
-from astrocats.catalog.catdict import CatDict
+from astrocats.catalog.catdict import Ca... | MAINT: now throw CatDictError when not adding because alias/value | py |
diff --git a/gflags/__init__.py b/gflags/__init__.py
index <HASH>..<HASH> 100644
--- a/gflags/__init__.py
+++ b/gflags/__init__.py
@@ -354,8 +354,6 @@ def _RegisterBoundsValidatorIfNeeded(parser, name, flag_values):
# The DEFINE functions are explained in more details in the module doc string.
-# TODO(vrusinov): '... | Remove the TODO to rename help to helptext. | py |
diff --git a/pipenv/cli.py b/pipenv/cli.py
index <HASH>..<HASH> 100644
--- a/pipenv/cli.py
+++ b/pipenv/cli.py
@@ -870,7 +870,7 @@ def shell(three=None, python=False, compat=False, shell_args=None):
)
# Activate the virtualenv if in compatibility mode.
- if compat:
+ if PIPENV_SHELL_COMPAT or compat:
... | fix PIPENV_SHELL_COMPAT | py |
diff --git a/python/wekaexamples/classifiers.py b/python/wekaexamples/classifiers.py
index <HASH>..<HASH> 100644
--- a/python/wekaexamples/classifiers.py
+++ b/python/wekaexamples/classifiers.py
@@ -66,7 +66,7 @@ def main():
loader = Loader("weka.core.converters.ArffLoader")
iris_inc = loader.load_file(iris_f... | constructor uses "classname=..." now | py |
diff --git a/doc/source/conf.py b/doc/source/conf.py
index <HASH>..<HASH> 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -378,7 +378,7 @@ latex_documents = [
"index",
"pandas.tex",
"pandas: powerful Python data analysis toolkit",
- r"Wes McKinney\n\& PyData Development Tea... | DOC: Update the LaTeX author. (#<I>) The LaTeX engine did not like the newlines. It caused an undefined control sequence. | py |
diff --git a/src/calmjs/parse/tests/test_es5_unparser.py b/src/calmjs/parse/tests/test_es5_unparser.py
index <HASH>..<HASH> 100644
--- a/src/calmjs/parse/tests/test_es5_unparser.py
+++ b/src/calmjs/parse/tests/test_es5_unparser.py
@@ -2217,6 +2217,12 @@ MinifyPrintTestCase = build_equality_testcase(
""",
... | Additional test for the other $ rule - Neglected the suffixed $ sign vs. binary operators with a string as its identifier. | py |
diff --git a/src/scs_core/aqcsv/connector/mapping_task.py b/src/scs_core/aqcsv/connector/mapping_task.py
index <HASH>..<HASH> 100644
--- a/src/scs_core/aqcsv/connector/mapping_task.py
+++ b/src/scs_core/aqcsv/connector/mapping_task.py
@@ -14,6 +14,8 @@ from ast import literal_eval
from collections import OrderedDict... | Added mappings(..) method to MappingTask. | py |
diff --git a/src/pyshark/capture/capture.py b/src/pyshark/capture/capture.py
index <HASH>..<HASH> 100644
--- a/src/pyshark/capture/capture.py
+++ b/src/pyshark/capture/capture.py
@@ -261,7 +261,7 @@ class Capture(object):
Returns a new tshark process with previously-set parameters.
"""
xml_ty... | Added -Q to tshark flags | py |
diff --git a/GPy/inference/mcmc/samplers.py b/GPy/inference/mcmc/samplers.py
index <HASH>..<HASH> 100644
--- a/GPy/inference/mcmc/samplers.py
+++ b/GPy/inference/mcmc/samplers.py
@@ -1,6 +1,6 @@
# ## Copyright (c) 2014, Zhenwen Dai
# Licensed under the BSD 3-clause license (see LICENSE.txt)
-
+from __future__ import ... | FIX: missing compatibility Py2/3 | py |
diff --git a/pyte/streams.py b/pyte/streams.py
index <HASH>..<HASH> 100644
--- a/pyte/streams.py
+++ b/pyte/streams.py
@@ -57,7 +57,7 @@ class Stream(object):
`man console_codes <http://linux.die.net/man/4/console_codes>`_
For details on console codes listed bellow in :attr:`basic`,
- ... | Removed mention of ``percent`` from ``Stream`` | py |
diff --git a/keyboard/_nixkeyboard.py b/keyboard/_nixkeyboard.py
index <HASH>..<HASH> 100644
--- a/keyboard/_nixkeyboard.py
+++ b/keyboard/_nixkeyboard.py
@@ -91,9 +91,15 @@ def build_tables():
# dumpkeys consistently misreports the Windows key, sometimes
# skipping it completely or reporting as 'alt. 125 = l... | Fix windows key registration on linux If dumpkeys reports windows key as alt, we remove that mapping and register the key manually. | py |
diff --git a/python/src/nnabla/functions.py b/python/src/nnabla/functions.py
index <HASH>..<HASH> 100644
--- a/python/src/nnabla/functions.py
+++ b/python/src/nnabla/functions.py
@@ -929,7 +929,7 @@ def stft(x, window_size, stride, fft_size, window_type='hanning', center=True, p
x = pad(x, (fft_size // 2, fft_... | STFT without out-of-place reshape | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,6 +11,9 @@ from os import path
here = path.abspath(path.dirname(__file__))
+# Update version here!
+ver = '0.2.2'
+
# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='... | Updated download link for <I> | py |
diff --git a/sos/plugins/lstopo.py b/sos/plugins/lstopo.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/lstopo.py
+++ b/sos/plugins/lstopo.py
@@ -7,7 +7,7 @@
# See the LICENSE file in the source distribution for further information.
from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin
-from dis... | [lstopo] Fix to not depend on distutils This adds support for Ubuntu and drops the depends on distutils replacing with the sos utility. I believe the functionality should be the same, and appears to work on Ubuntu. Closes: #<I> | py |
diff --git a/discord/app_commands/namespace.py b/discord/app_commands/namespace.py
index <HASH>..<HASH> 100644
--- a/discord/app_commands/namespace.py
+++ b/discord/app_commands/namespace.py
@@ -142,7 +142,8 @@ class Namespace:
self.__dict__[name] = value
elif opt_type == 10: # number
... | Fix empty strings crashing Namespace for float options This feels like a Discord bug to me but it's causing issues | py |
diff --git a/aiohttp/web.py b/aiohttp/web.py
index <HASH>..<HASH> 100644
--- a/aiohttp/web.py
+++ b/aiohttp/web.py
@@ -256,13 +256,12 @@ class StreamResponse(HeadersMixin):
@asyncio.coroutine
def write_eof(self):
- if self._resp_impl is None:
- raise RuntimeError("No headers has been sent"... | Change checks order in response.write_eof() for making twice call a bit faster | py |
diff --git a/pinax/points/tests/tests.py b/pinax/points/tests/tests.py
index <HASH>..<HASH> 100644
--- a/pinax/points/tests/tests.py
+++ b/pinax/points/tests/tests.py
@@ -33,8 +33,8 @@ class BasePointsTestCase(object):
]
def setup_points(self, value):
- for k, v in value.iteritems():
- ... | Do not use iteritems in Python 3 | py |
diff --git a/fitsio/test.py b/fitsio/test.py
index <HASH>..<HASH> 100644
--- a/fitsio/test.py
+++ b/fitsio/test.py
@@ -897,7 +897,6 @@ class TestReadWrite(unittest.TestCase):
#pass
os.remove(fname)
- '''
def testTableIter(self):
"""
Test iterating over rows ... | re-instated iter test | py |
diff --git a/HARK/distribution.py b/HARK/distribution.py
index <HASH>..<HASH> 100644
--- a/HARK/distribution.py
+++ b/HARK/distribution.py
@@ -514,9 +514,9 @@ class DiscreteDistribution():
bot = top
top = cutoffs[j]
event_list += (top-bot)*[events[j]]
- ... | Bug fix to drawDiscrete These two lines can be run outside the loop, avoiding an error when N<events.size and also saving time. The error occurs when j=0 and event_draws is empty (X[event_draws] throws an error). | py |
diff --git a/bolt/spark/chunk.py b/bolt/spark/chunk.py
index <HASH>..<HASH> 100644
--- a/bolt/spark/chunk.py
+++ b/bolt/spark/chunk.py
@@ -229,7 +229,7 @@ class ChunkedArray(object):
# update properties
newplan = self.plan[~vmask]
newsplit = self._split + len(axes)
- newshape = tuple(r... | fixed problem with shape not always containing ints | py |
diff --git a/zarr/tests/test_core.py b/zarr/tests/test_core.py
index <HASH>..<HASH> 100644
--- a/zarr/tests/test_core.py
+++ b/zarr/tests/test_core.py
@@ -855,11 +855,6 @@ class TestArray(unittest.TestCase):
assert_array_equal(a['bar'], z['bar'])
assert_array_equal(a['baz'], z['baz'])
... | delete commented code [ci skip] | py |
diff --git a/src/diamond/server.py b/src/diamond/server.py
index <HASH>..<HASH> 100644
--- a/src/diamond/server.py
+++ b/src/diamond/server.py
@@ -355,13 +355,19 @@ class Server(object):
# Load collectors
if os.path.dirname(file) == '':
tmp_path = self.config['server']['collectors_path']
... | only filter out from the collectors dict if /path/to/file.py syntax wasn't used | py |
diff --git a/indra/statements.py b/indra/statements.py
index <HASH>..<HASH> 100644
--- a/indra/statements.py
+++ b/indra/statements.py
@@ -208,12 +208,14 @@ class Statement(object):
self.__class__.__name__)
def monomers_two_step(self, agent_set):
- warnings.warn("%s.monomers_two... | Revert to one-step when two-step not implemented in assembler | py |
diff --git a/buku.py b/buku.py
index <HASH>..<HASH> 100755
--- a/buku.py
+++ b/buku.py
@@ -1241,7 +1241,8 @@ class BukuDb:
<H1>Bookmarks</H1>
<DL><p>
- <DT><H3 ADD_DATE="%s" LAST_MODIFIED="%s" PERSONAL_TOOLBAR_FOLDER="true">Buku bookmarks</H3>
+ <DT><H3 ADD_DATE="%s" LAST_MODIFIED="%s" PERSONAL_TOOLBAR_FOLDER... | Try with http if scheme is missing in URI. urllib3 requests can work around this, e.g., google.com is resolved. However, the browser fails if there's no scheme in the URI. The observation is based on Google Chrome's behaviour. So we try <URL>. We'll need to work on it if there a bug report on this 'forced' behaviour. | py |
diff --git a/redis/commands/core.py b/redis/commands/core.py
index <HASH>..<HASH> 100644
--- a/redis/commands/core.py
+++ b/redis/commands/core.py
@@ -17,6 +17,7 @@ from typing import (
Mapping,
Optional,
Sequence,
+ Set,
Tuple,
Union,
)
@@ -3257,7 +3258,7 @@ class SetCommands(CommandsProto... | Fix typing on smembers command (#<I>) | py |
diff --git a/shipwire/responses.py b/shipwire/responses.py
index <HASH>..<HASH> 100644
--- a/shipwire/responses.py
+++ b/shipwire/responses.py
@@ -47,7 +47,7 @@ class ListResponse(ShipwireResponse):
def _get_all_serial(self):
# loop over all items with previous and next
- next = self.next
+ ... | refactored responses to support python 3 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,8 @@
#!/usr/bin/env python
+import subprocess
from pathlib import Path
+from distutils.cmd import Command
from setuptools import setup, find_packages
# pylint: disable=unused-import
import fastentrypoints # noq... | added lint command in setup.py | py |
diff --git a/yowsup/layers/protocol_media/protocolentities/attributes/attributes_document.py b/yowsup/layers/protocol_media/protocolentities/attributes/attributes_document.py
index <HASH>..<HASH> 100644
--- a/yowsup/layers/protocol_media/protocolentities/attributes/attributes_document.py
+++ b/yowsup/layers/protocol_me... | [feat] add from_filepath to document attrs | py |
diff --git a/deployment/update/update.py b/deployment/update/update.py
index <HASH>..<HASH> 100644
--- a/deployment/update/update.py
+++ b/deployment/update/update.py
@@ -100,7 +100,7 @@ def update_info(ctx):
@task
def pre_update(ctx, ref=settings.UPDATE_REF):
"""Update code to pick up changes to this file."""
-... | added ctx to update_code call | py |
diff --git a/source/rafcon/mvc/controllers/state_machines_editor.py b/source/rafcon/mvc/controllers/state_machines_editor.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/mvc/controllers/state_machines_editor.py
+++ b/source/rafcon/mvc/controllers/state_machines_editor.py
@@ -233,7 +233,7 @@ class StateMachinesEditor... | Fix naming of constant Was accidentally changed by a previous search/replace operation when renaming color constants | py |
diff --git a/audioread/ffdec.py b/audioread/ffdec.py
index <HASH>..<HASH> 100644
--- a/audioread/ffdec.py
+++ b/audioread/ffdec.py
@@ -100,12 +100,12 @@ class FFmpegAudioFile(object):
self.stderr_reader.start()
self.stdin_reader = None
+ self.audio_datas = Queue()
def read_data(self, b... | feat: ensure that the queue is cleared | py |
diff --git a/synapse/axon.py b/synapse/axon.py
index <HASH>..<HASH> 100644
--- a/synapse/axon.py
+++ b/synapse/axon.py
@@ -120,6 +120,12 @@ class AxonHttpDelV1(s_httpapi.Handler):
class AxonFileHandler(s_httpapi.Handler):
+ def axon(self):
+ return self.cell
+
+ async def getAxonInfo(self):
+ r... | Bug: Use cellinfo to determine axon feature capabilities in http handler (#<I>) | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -35,6 +35,9 @@ extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.viewcode',
+ # These IPython extensions allow for embedded IPython code that gets rerun
+ # at buil... | Add highlighting for IPython blocks | py |
diff --git a/pyzotero/zotero.py b/pyzotero/zotero.py
index <HASH>..<HASH> 100644
--- a/pyzotero/zotero.py
+++ b/pyzotero/zotero.py
@@ -983,9 +983,9 @@ class Zotero(object):
if 'name' not in item:
raise ze.ParamNotPassed(
"The dict you pass must include a 'name' key")
-... | Fix where the parentCollection key gets added (to the dict, not the enclosing list) | py |
diff --git a/img_proof/ipa_cloud.py b/img_proof/ipa_cloud.py
index <HASH>..<HASH> 100644
--- a/img_proof/ipa_cloud.py
+++ b/img_proof/ipa_cloud.py
@@ -260,7 +260,7 @@ class IpaCloud(object):
self.results['info'] = {
'platform': self.cloud,
'distro': self.distro_name,
- 'ima... | Fix test results bug Image maps to the image id not the instance ip. | py |
diff --git a/s2clientprotocol/build.py b/s2clientprotocol/build.py
index <HASH>..<HASH> 100644
--- a/s2clientprotocol/build.py
+++ b/s2clientprotocol/build.py
@@ -4,7 +4,7 @@
import subprocess
def game_version():
- return "5.0.7.84643.0"
+ return "5.0.8.86383.0"
def read_command_output(cmd): | Updating to version <I> | py |
diff --git a/src/pyop/request_validator.py b/src/pyop/request_validator.py
index <HASH>..<HASH> 100644
--- a/src/pyop/request_validator.py
+++ b/src/pyop/request_validator.py
@@ -43,18 +43,23 @@ def redirect_uri_is_in_registered_redirect_uris(provider, authentication_request
:param authentication_request: authenti... | Differentiate when redirect-uri is not registered from no redirect-uris for client | py |
diff --git a/Lib/fontParts/base/normalizers.py b/Lib/fontParts/base/normalizers.py
index <HASH>..<HASH> 100644
--- a/Lib/fontParts/base/normalizers.py
+++ b/Lib/fontParts/base/normalizers.py
@@ -886,7 +886,7 @@ def normalizeRounding(value):
"""
if not isinstance(value, (int, float)):
raise FontPartsE... | fixed code from my trial variable name... | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.