diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/src/xworkflows/base.py b/src/xworkflows/base.py
index <HASH>..<HASH> 100644
--- a/src/xworkflows/base.py
+++ b/src/xworkflows/base.py
@@ -563,18 +563,18 @@ class Workflow(object):
if state_field:
self.state_field = state_field
- def log_transition(self, transition, from_state, ob... | Better argument naming when logging transitions. | py |
diff --git a/albumentations/augmentations/transforms.py b/albumentations/augmentations/transforms.py
index <HASH>..<HASH> 100644
--- a/albumentations/augmentations/transforms.py
+++ b/albumentations/augmentations/transforms.py
@@ -1663,7 +1663,7 @@ class RandomFog(ImageOnlyTransform):
height, width = imshape... | Fix infinity while loop in RandomFog #<I> (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from setuptools import setup
setup(
name = 'gophish',
packages = ['gophish', 'gophish.api'],
- version = '0.1.4',
+ version = '0.1.5',
description = 'Python API Client for Gophish',
author = 'Jordan... | Bumping revision to <I> to include previous fix | py |
diff --git a/spyderlib/widgets/editor.py b/spyderlib/widgets/editor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/editor.py
+++ b/spyderlib/widgets/editor.py
@@ -1201,7 +1201,8 @@ class EditorStack(QWidget):
filename = self.select_savename(finfo.filename)
if filename:
ao_index ... | Editor/bugfix: index error when creating + saving a new file | py |
diff --git a/datacats/cli/create.py b/datacats/cli/create.py
index <HASH>..<HASH> 100644
--- a/datacats/cli/create.py
+++ b/datacats/cli/create.py
@@ -124,11 +124,13 @@ Options:
print 'Resetting...'
environment.stop_supporting_containers()
environment.stop_ckan()
+ # Save the port.
+ saved_port = e... | Save port before purging on reset. | py |
diff --git a/flatten_json.py b/flatten_json.py
index <HASH>..<HASH> 100644
--- a/flatten_json.py
+++ b/flatten_json.py
@@ -132,11 +132,11 @@ def unflatten_list(flat_dict, separator='_'):
unflattened_dict = unflatten(flat_dict, separator)
def _convert_dict_to_list(object_, parent_object, parent_object_key):
... | Aaaand fixing spacing, thanks vim | py |
diff --git a/tests/test_sshfs.py b/tests/test_sshfs.py
index <HASH>..<HASH> 100644
--- a/tests/test_sshfs.py
+++ b/tests/test_sshfs.py
@@ -82,7 +82,7 @@ class TestSSHFSOpener(fs.test.FSTestCases, unittest.TestCase):
cls.user = "foo"
cls.pasw = "pass"
cls.port = 22
- cls.docker_client =... | Fix tests to use the right docker API version | py |
diff --git a/tests/testSupport.py b/tests/testSupport.py
index <HASH>..<HASH> 100644
--- a/tests/testSupport.py
+++ b/tests/testSupport.py
@@ -1,6 +1,8 @@
from __future__ import print_function, division, absolute_import
import sys
+import os
import types
+import contextlib
from fontTools.misc.py23 import tostr
... | testSupport: add pushd context manager | py |
diff --git a/discord/abc.py b/discord/abc.py
index <HASH>..<HASH> 100644
--- a/discord/abc.py
+++ b/discord/abc.py
@@ -764,6 +764,8 @@ class Messageable(metaclass=abc.ABCMeta):
elif files is not None:
if len(files) > 10:
raise InvalidArgument('files parameter must be a list of up ... | Add type checking to multi-file send Convert list comprehension to genexpr | py |
diff --git a/pyinaturalist/session.py b/pyinaturalist/session.py
index <HASH>..<HASH> 100644
--- a/pyinaturalist/session.py
+++ b/pyinaturalist/session.py
@@ -327,12 +327,7 @@ class ClientSession(CacheMixin, LimiterMixin, Session):
return self.send(request, **kwargs)
# Save decoded JSON on respons... | Simplify caching decoded response JSON | py |
diff --git a/pyrogram/client/methods/messages/get_messages.py b/pyrogram/client/methods/messages/get_messages.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/methods/messages/get_messages.py
+++ b/pyrogram/client/methods/messages/get_messages.py
@@ -28,6 +28,9 @@ from ...ext import BaseClient, utils
log = logging... | Add better summary for get_messages | py |
diff --git a/eventsourcing/application/simple.py b/eventsourcing/application/simple.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/application/simple.py
+++ b/eventsourcing/application/simple.py
@@ -604,10 +604,12 @@ class PromptToPull(Prompt):
)
def __repr__(self) -> str:
- return "{}({}={},... | Changed PromptPullNotification.__repr__ to include head_notification_id. | py |
diff --git a/examples/iyyer_dan.py b/examples/iyyer_dan.py
index <HASH>..<HASH> 100644
--- a/examples/iyyer_dan.py
+++ b/examples/iyyer_dan.py
@@ -157,11 +157,10 @@ def main(data_dir, vectors_loc=None, depth=2, width=300, n_iter=5,
avg_grad)
if n_correct >= prev_best:
prev_best = n_... | * Uncomment evaluation for text classifier | py |
diff --git a/leaflet_storage/tests/views.py b/leaflet_storage/tests/views.py
index <HASH>..<HASH> 100644
--- a/leaflet_storage/tests/views.py
+++ b/leaflet_storage/tests/views.py
@@ -517,6 +517,16 @@ class UploadData(TransactionTestCase):
self.assertEqual(Marker.objects.filter(category=self.category).count(), ... | Unittest for the download data view (cf #<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -9,11 +9,6 @@ import os
from os import path
from os.path import splitext
-# Hack around lack of way to specify compile-time dependency..
-try:
- import murmurhash
-except ImportError:
- subprocess.call(['pip install ... | * Fiddle with impossibly broken setup stuff | py |
diff --git a/util.py b/util.py
index <HASH>..<HASH> 100644
--- a/util.py
+++ b/util.py
@@ -427,11 +427,3 @@ byte_compile(files, optimize=%s, force=%s,
(file, cfile_base)
# byte_compile ()
-
-
-if __name__ == "__main__":
- import glob
- f = glob.glob("command/*.py")
- byte_comp... | Removed debugging code at bottom. | py |
diff --git a/schema_salad/tests/test_examples.py b/schema_salad/tests/test_examples.py
index <HASH>..<HASH> 100644
--- a/schema_salad/tests/test_examples.py
+++ b/schema_salad/tests/test_examples.py
@@ -332,7 +332,7 @@ class TestSchemas(unittest.TestCase):
print(g.serialize(format="n3"))
def test_mixin(... | modified test mixin for correct base path | py |
diff --git a/colorise/__init__.py b/colorise/__init__.py
index <HASH>..<HASH> 100644
--- a/colorise/__init__.py
+++ b/colorise/__init__.py
@@ -67,10 +67,7 @@ else:
redefine_colors as _redefine_colors
if _DEBUG_MODE:
- if sys.version_info[:2] < (2, 6):
- dist = platform.dist()
- ... | No more support for python 2.x | py |
diff --git a/src/masonite/auth/guards/WebGuard.py b/src/masonite/auth/guards/WebGuard.py
index <HASH>..<HASH> 100644
--- a/src/masonite/auth/guards/WebGuard.py
+++ b/src/masonite/auth/guards/WebGuard.py
@@ -71,9 +71,13 @@ class WebGuard(AuthenticationGuard):
else:
model = self.auth_model.w... | Add comments to explain the patch of #<I> | py |
diff --git a/spyder/api/widgets/mixins.py b/spyder/api/widgets/mixins.py
index <HASH>..<HASH> 100644
--- a/spyder/api/widgets/mixins.py
+++ b/spyder/api/widgets/mixins.py
@@ -74,6 +74,12 @@ class SpyderToolButtonMixin:
option=option
)
toolbutton.name = name
+
+ if toggled:
+ ... | Initialize toolbutton with CONF value if requested | py |
diff --git a/dql/engine.py b/dql/engine.py
index <HASH>..<HASH> 100644
--- a/dql/engine.py
+++ b/dql/engine.py
@@ -91,7 +91,7 @@ class Engine(object):
"""
- def __init__(self, connection=None):
+ def __init__(self, connection=None):
self._connection = connection
self.cached_description... | Fixing a formatting error in engine.py | py |
diff --git a/lilypond/interp.py b/lilypond/interp.py
index <HASH>..<HASH> 100644
--- a/lilypond/interp.py
+++ b/lilypond/interp.py
@@ -66,7 +66,6 @@ def parse_duration(duration_marker):
def parse_block(token_generator):
prev_note_value = None
prev_duration = 16
- curr_octave = 4
offset = 0
tie_d... | got rid of curr_octave variable and used constant 4 | py |
diff --git a/keyring/backend.py b/keyring/backend.py
index <HASH>..<HASH> 100644
--- a/keyring/backend.py
+++ b/keyring/backend.py
@@ -103,7 +103,9 @@ class NullCrypter(Crypter):
def _load_backend(name):
"Load a backend by name"
- exec("from .backends import {name}".format(name=name))
+ # invoke __name__ ... | Restore support for demand-import environments | py |
diff --git a/fut/pin.py b/fut/pin.py
index <HASH>..<HASH> 100644
--- a/fut/pin.py
+++ b/fut/pin.py
@@ -79,7 +79,7 @@ class Pin(object):
self.r.headers['x-ea-game-id-type'] = self.tidt
self.r.headers['x-ea-taxv'] = self.taxv
- self.custom = {"networkAccess": "W"} # wifi?
+ self.custom ... | Update pin.py Looks like it's not W anymore but G | py |
diff --git a/flake8_string_format.py b/flake8_string_format.py
index <HASH>..<HASH> 100755
--- a/flake8_string_format.py
+++ b/flake8_string_format.py
@@ -15,7 +15,7 @@ try:
except ImportError as e:
argparse = e
-__version__ = '0.2.2.dev0'
+__version__ = '0.2.2.dev1'
class Flake8Argparse(object):
@@ -289,9... | Properly assert that varargs are at the end (#<I>) With version <I> the varargs are now part of the normal argument list and thus it is not guaranteed that they are at the end. But that is required for the rest of the code to actually do the right thing, so it asserted that but did it incorrectly. | py |
diff --git a/salt/netapi/rest_tornado/saltnado.py b/salt/netapi/rest_tornado/saltnado.py
index <HASH>..<HASH> 100644
--- a/salt/netapi/rest_tornado/saltnado.py
+++ b/salt/netapi/rest_tornado/saltnado.py
@@ -1039,8 +1039,7 @@ class SaltAPIHandler(BaseSaltAPIHandler, SaltClientsMixIn): # pylint: disable=W
'''
... | Format low data correct for runner_async | 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
@@ -429,10 +429,10 @@ def get_site_collection(oqparam):
grid_spacing).discretize(grid_spacing)
grid_sit... | More logging [skip CI] | py |
diff --git a/contact_form/tests/test_forms.py b/contact_form/tests/test_forms.py
index <HASH>..<HASH> 100644
--- a/contact_form/tests/test_forms.py
+++ b/contact_form/tests/test_forms.py
@@ -88,6 +88,11 @@ class ContactFormTests(TestCase):
message.recipients())
def test_callable_templat... | Add some missing docstrings. | py |
diff --git a/ics/icalendar.py b/ics/icalendar.py
index <HASH>..<HASH> 100644
--- a/ics/icalendar.py
+++ b/ics/icalendar.py
@@ -57,6 +57,10 @@ class Calendar(Component):
Should not be used directly. Use self.__repr__ instead'''
return "<Calendar with {} events>".format(len(self.events))
+ def __it... | Make Calendar iterable (to be able to do f.writelines(calendar)) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -14,16 +14,18 @@ def read(fname):
setup(
name='py3status',
- version='0.9',
- url='https://github.com/ultrabug/py3status/wiki',
- download_url='https://github.com/ultrabug/py3status',
- license='BSD',
+ ... | fix setup for pypi, version <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,7 +36,7 @@ setup(
license='BSD',
- classifiers=['Development Status :: 3 - Alpha',
+ classifiers=['Development Status :: 4 - Beta',
'Programming Language :: Python :: 2',
... | MNT: Set beta status in PyPI package info | py |
diff --git a/salt/renderers/pyobjects.py b/salt/renderers/pyobjects.py
index <HASH>..<HASH> 100644
--- a/salt/renderers/pyobjects.py
+++ b/salt/renderers/pyobjects.py
@@ -306,6 +306,8 @@ def load_states():
# TODO: some way to lazily do this? This requires loading *all* state modules
for key, func in lazy_st... | fix pyobjects loader change | py |
diff --git a/netpyne/analysis.py b/netpyne/analysis.py
index <HASH>..<HASH> 100644
--- a/netpyne/analysis.py
+++ b/netpyne/analysis.py
@@ -25,11 +25,11 @@ warnings.filterwarnings("ignore")
colorList = [[0.42,0.67,0.84], [0.90,0.76,0.00], [0.42,0.83,0.59], [0.90,0.32,0.00],
[0.34,0.67,0.67], [0.90,0.59,0.0... | added extra color to plotting color list | py |
diff --git a/qgrid/__init__.py b/qgrid/__init__.py
index <HASH>..<HASH> 100644
--- a/qgrid/__init__.py
+++ b/qgrid/__init__.py
@@ -42,7 +42,7 @@ def nbinstall(overwrite=False, user=True):
overwrite=overwrite,
symlink=False,
verbose=0,
- **({'user': user} if version_info>=(3, 0, 0, '') ... | STY: Whitespace around operator. | py |
diff --git a/tests/builder/features_test.py b/tests/builder/features_test.py
index <HASH>..<HASH> 100644
--- a/tests/builder/features_test.py
+++ b/tests/builder/features_test.py
@@ -18,6 +18,7 @@ import os
from textwrap import dedent
from glyphsLib import to_glyphs, to_ufos, classes
+from glyphsLib.builder.feature... | add test for incomplete glyphOrder with _build_gdef | py |
diff --git a/spatialist/raster.py b/spatialist/raster.py
index <HASH>..<HASH> 100644
--- a/spatialist/raster.py
+++ b/spatialist/raster.py
@@ -1178,6 +1178,14 @@ class Raster(object):
if overviews:
outDataset.BuildOverviews('NEAREST', overviews)
if format == 'COG':
+ options_me... | [Raster.write] allow writing TIFFTAG_ metadata with COG driver | py |
diff --git a/tests/integration_test.py b/tests/integration_test.py
index <HASH>..<HASH> 100644
--- a/tests/integration_test.py
+++ b/tests/integration_test.py
@@ -131,7 +131,7 @@ class TestCreateContainer(BaseTestCase):
class TestCreateContainerWithBinds(BaseTestCase):
def runTest(self):
mount_dest = '/m... | integration test fix make the mount point for shared.txt reside in the /tmp/ folder because if it resides in the lib folder docker sets the owner of the folder as root inside the container so then when the container exists the test fails to cleanup and remove the shared.txt file, and breaks git as well. | py |
diff --git a/mmcv/cnn/weight_init.py b/mmcv/cnn/weight_init.py
index <HASH>..<HASH> 100644
--- a/mmcv/cnn/weight_init.py
+++ b/mmcv/cnn/weight_init.py
@@ -2,7 +2,8 @@ import torch.nn as nn
def constant_init(module, val, bias=0):
- nn.init.constant_(module.weight, val)
+ if hasattr(module, 'weight') and modul... | process the case that no weight in the module (#<I>) | py |
diff --git a/src/livestreamer/plugins/rtve.py b/src/livestreamer/plugins/rtve.py
index <HASH>..<HASH> 100644
--- a/src/livestreamer/plugins/rtve.py
+++ b/src/livestreamer/plugins/rtve.py
@@ -1,6 +1,7 @@
import re
-from livestreamer.plugin import Plugin
+from livestreamer.plugin import Plugin, PluginError
+from lives... | plugins.rtve: Check if the stream is available Due to right restrictions some programs are not available from the Internet | py |
diff --git a/blimpy/io/base_reader.py b/blimpy/io/base_reader.py
index <HASH>..<HASH> 100644
--- a/blimpy/io/base_reader.py
+++ b/blimpy/io/base_reader.py
@@ -216,7 +216,7 @@ class Reader(object):
self._setup_chans()
#create freq array
- i_vals = np.arange(self.chan_start_idx, self.chan_stop_... | Issue #<I> Function populate_freqs when calculating the i_vals array, numpy.arange was not given the correct "stop" index value. See <URL> | py |
diff --git a/postmark/core.py b/postmark/core.py
index <HASH>..<HASH> 100644
--- a/postmark/core.py
+++ b/postmark/core.py
@@ -42,6 +42,8 @@ class PMJSONEncoder(json.JSONEncoder):
try:
if hasattr(o, '_proxy____str_cast') and isinstance(o._proxy____str_cast, collections.Callable):
... | Provide fix for text based proxy changes This catches an error whereby django <I>+'s ugettext_lazy strings aren't properly converted (for subjects, for instance). | py |
diff --git a/mongoctl/mongoctl.py b/mongoctl/mongoctl.py
index <HASH>..<HASH> 100644
--- a/mongoctl/mongoctl.py
+++ b/mongoctl/mongoctl.py
@@ -1136,8 +1136,6 @@ def is_forking(server, options_override):
def validate_server(server):
errors = []
- if server.get_db_path() is None:
- errors.append("** dbp... | dbpath is no longer required. previous check-in made cmdOptions optional instead | py |
diff --git a/shoebot/gtkui.py b/shoebot/gtkui.py
index <HASH>..<HASH> 100644
--- a/shoebot/gtkui.py
+++ b/shoebot/gtkui.py
@@ -37,13 +37,16 @@ class ShoebotDrawingArea(gtk.DrawingArea):
# check inputscript for size and whether is a static script or not
- # it is a real weak workaround anyway, it for... | refined a bit the size() line parsing for pre-determination of the window size when using the GUI, now it should work even if size() command is not on it's own line | py |
diff --git a/forms_builder/forms/admin.py b/forms_builder/forms/admin.py
index <HASH>..<HASH> 100644
--- a/forms_builder/forms/admin.py
+++ b/forms_builder/forms/admin.py
@@ -7,7 +7,7 @@ from os.path import join
from datetime import datetime
from io import BytesIO, StringIO
-from django.conf.urls import patterns, u... | Django <I> no longer has the django.conf.urls.patterns function | py |
diff --git a/ffn/core.py b/ffn/core.py
index <HASH>..<HASH> 100644
--- a/ffn/core.py
+++ b/ffn/core.py
@@ -1203,12 +1203,8 @@ def calc_sharpe(returns, rf=0., nperiods=None, annualize=True):
raise Exception('Must provide nperiods if rf != 0')
er = returns.to_excess_returns(rf, nperiods=nperiods)
-
s... | fix divide by 0 pr #<I> | py |
diff --git a/tests/examples_test.py b/tests/examples_test.py
index <HASH>..<HASH> 100644
--- a/tests/examples_test.py
+++ b/tests/examples_test.py
@@ -6,8 +6,6 @@ import pytest
from . import util
-pytestmark = pytest.mark.skipif(True, reason='examples_tests are broken.')
-
path = os.path.join(os.path.dirname(os... | actually reenable examples tests. | py |
diff --git a/src/python/pants/backend/core/tasks/list_goals.py b/src/python/pants/backend/core/tasks/list_goals.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/backend/core/tasks/list_goals.py
+++ b/src/python/pants/backend/core/tasks/list_goals.py
@@ -25,8 +25,10 @@ class ListGoals(ConsoleTask):
undocumen... | Make goal listing use only the first sentence of the description. Now that the description can be inferred from a task docstring, this is pertinent. Testing Done: Manual testing before and after. Ran the list_goals tests. Bugs closed: <I> Reviewed at <URL> | py |
diff --git a/troposphere/autoscaling.py b/troposphere/autoscaling.py
index <HASH>..<HASH> 100644
--- a/troposphere/autoscaling.py
+++ b/troposphere/autoscaling.py
@@ -275,6 +275,7 @@ class EBSBlockDevice(AWSProperty):
# http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-bl... | Added Encrypted property for EBS volume in an autoscaling group | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ setup(
keywords='omxplayer pi raspberry raspberrypi raspberry_pi library',
packages=find_packages(exclude=['*tests']),
- install_requires=[],
+ install_requires=['dbus-python'],
extras_req... | Add dbus-python as a dependency | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -33,6 +33,10 @@ VEX_PATH = os.path.abspath(os.path.join(PROJECT_DIR, 'vex'))
def _build_vex():
+ if len(os.listdir(VEX_PATH)) == 0:
+ raise LibError("vex submodule not cloned correctly, aborting.\n"
+ ... | Add informative error message when vex is not checked out properly (#<I>) | py |
diff --git a/pyforms/gui/Controls/ControlList.py b/pyforms/gui/Controls/ControlList.py
index <HASH>..<HASH> 100755
--- a/pyforms/gui/Controls/ControlList.py
+++ b/pyforms/gui/Controls/ControlList.py
@@ -155,17 +155,26 @@ class ControlList(ControlBase, QWidget):
return self.tableWidget.item(row, column)
... | Added option to set list read only | py |
diff --git a/inginious/frontend/lti/lis_outcome_manager.py b/inginious/frontend/lti/lis_outcome_manager.py
index <HASH>..<HASH> 100644
--- a/inginious/frontend/lti/lis_outcome_manager.py
+++ b/inginious/frontend/lti/lis_outcome_manager.py
@@ -50,9 +50,8 @@ class LisOutcomeManager(threading.Thread):
try:
... | Why did I put <I> here? Must be a wrong copy/paste | py |
diff --git a/tests/configured_tests.py b/tests/configured_tests.py
index <HASH>..<HASH> 100644
--- a/tests/configured_tests.py
+++ b/tests/configured_tests.py
@@ -493,15 +493,16 @@ class ChangePasswordTest(SecurityTest):
self.assertIn("/reset", outbox[0].html)
-class SendEmailTest(SecurityTest):
+class Ema... | Update test names and add docstring. | py |
diff --git a/picopt.py b/picopt.py
index <HASH>..<HASH> 100755
--- a/picopt.py
+++ b/picopt.py
@@ -17,11 +17,15 @@ import traceback
import dateutil.parser
import time
-import Image
-import ImageFile
import rarfile
-
-__version__ = '0.11.2'
+try:
+ from PIL import Image
+ from PIL import ImageFile
+except Imp... | try to import from PIL namespace first before Image | py |
diff --git a/services/managers/teamspeak3_manager.py b/services/managers/teamspeak3_manager.py
index <HASH>..<HASH> 100755
--- a/services/managers/teamspeak3_manager.py
+++ b/services/managers/teamspeak3_manager.py
@@ -279,13 +279,11 @@ class Teamspeak3Manager:
if user_ts_groups[user_ts_group_key] not ... | Updated Logging To remove spam from logs. | py |
diff --git a/discord/permissions.py b/discord/permissions.py
index <HASH>..<HASH> 100644
--- a/discord/permissions.py
+++ b/discord/permissions.py
@@ -142,21 +142,21 @@ class Permissions:
self._set(0, value)
@property
- def can_ban_members(self):
- """Returns True if the user can ban users fro... | Unflip kick/ban permission bits | py |
diff --git a/proso/django/util.py b/proso/django/util.py
index <HASH>..<HASH> 100644
--- a/proso/django/util.py
+++ b/proso/django/util.py
@@ -1,5 +1,9 @@
from functools import wraps
+import hashlib
+import logging
+from django.core.cache import cache
+LOGGER = logging.getLogger('django.request')
def disable_for_... | add cache decorator for functions with deterministic results (pure) - resolve #<I> | py |
diff --git a/ccp/client.py b/ccp/client.py
index <HASH>..<HASH> 100644
--- a/ccp/client.py
+++ b/ccp/client.py
@@ -9,6 +9,7 @@ This module implements the Changelog API.
"""
+import sys
import requests
import json
from time import time
@@ -50,8 +51,10 @@ class Client(object):
return True
... | Properly handle exception from requests - response is generally not set in this except case - raising str-s is not supported - the trick with exc_info is needed because logging does io, and in contexts where we run under gevent or something similar, the global exception info may be lost by the time we re-rais... | py |
diff --git a/teneto/classes/bids.py b/teneto/classes/bids.py
index <HASH>..<HASH> 100644
--- a/teneto/classes/bids.py
+++ b/teneto/classes/bids.py
@@ -1,3 +1,4 @@
+"""TenetoBIDS is a class which can be used to use Teneto functions with data organized with BIDS (neuroimaging data)."""
import os
import bids
import num... | docstring for tenetobids | py |
diff --git a/tests/common.py b/tests/common.py
index <HASH>..<HASH> 100644
--- a/tests/common.py
+++ b/tests/common.py
@@ -1,11 +1,17 @@
#
# Copyright (C) 2011 - 2016 Satoru SATOH <ssato at redhat.com>
+# Copyright (C) 2017 - 2018 Satoru SATOH <satoru.satoh at gmail.com>
#
# pylint: disable=missing-docstring
impor... | fix: add an utility function to skip test | py |
diff --git a/cmd2.py b/cmd2.py
index <HASH>..<HASH> 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -285,10 +285,8 @@ class Cmd(cmd.Cmd):
statementEndPattern = re.compile(r'[%s]\s*$' % terminators)
def statementHasEnded(self, lines):
- #import pdb; pdb.set_trace()
return bool(self.... | fixed up unified pipe and redirect works on wc | py |
diff --git a/seleniumbase/fixtures/base_case.py b/seleniumbase/fixtures/base_case.py
index <HASH>..<HASH> 100755
--- a/seleniumbase/fixtures/base_case.py
+++ b/seleniumbase/fixtures/base_case.py
@@ -11418,6 +11418,11 @@ class BaseCase(unittest.TestCase):
self._default_driver = self.driver
if s... | Handle case where user overrides get_new_driver() | py |
diff --git a/schedule/urls.py b/schedule/urls.py
index <HASH>..<HASH> 100644
--- a/schedule/urls.py
+++ b/schedule/urls.py
@@ -9,10 +9,6 @@ from schedule.feeds import CalendarICalendar
from schedule.periods import Year, Month, Week, Day
from schedule.views import DeleteEventView
-info_dict = {
- 'queryset': Cale... | remove unused dictionary variable. Calling code was removed in commit: <URL> | py |
diff --git a/panoptes_client/subject_set.py b/panoptes_client/subject_set.py
index <HASH>..<HASH> 100644
--- a/panoptes_client/subject_set.py
+++ b/panoptes_client/subject_set.py
@@ -2,6 +2,7 @@ from __future__ import absolute_import, division, print_function
from builtins import str
from panoptes_client.panoptes i... | allow subject_set to return linked sms resources | py |
diff --git a/digitalocean/Droplet.py b/digitalocean/Droplet.py
index <HASH>..<HASH> 100644
--- a/digitalocean/Droplet.py
+++ b/digitalocean/Droplet.py
@@ -141,14 +141,14 @@ class Droplet(BaseAPI):
params={'type': 'password_reset'}
)
- def resize(self, new_size):
+ def resize(self, new_size... | Also the resize method uses doesn't changed. | py |
diff --git a/aiortc/rtcsctptransport.py b/aiortc/rtcsctptransport.py
index <HASH>..<HASH> 100644
--- a/aiortc/rtcsctptransport.py
+++ b/aiortc/rtcsctptransport.py
@@ -1034,7 +1034,7 @@ class RTCSctpTransport(EventEmitter):
sack = SackChunk()
sack.cumulative_tsn = self._last_received_tsn
- sac... | [sctp] never send a negative adverstised_rwnd | py |
diff --git a/eth_account/account.py b/eth_account/account.py
index <HASH>..<HASH> 100644
--- a/eth_account/account.py
+++ b/eth_account/account.py
@@ -632,9 +632,8 @@ class Account(object):
transaction. See below for examples on how to sign with different transaction types.
:param dict transaction_d... | Resolve sphinx doc-build warning | py |
diff --git a/pycam02ucs/cm/viscm.py b/pycam02ucs/cm/viscm.py
index <HASH>..<HASH> 100644
--- a/pycam02ucs/cm/viscm.py
+++ b/pycam02ucs/cm/viscm.py
@@ -351,6 +351,8 @@ class viscm_editor(object):
# self.cmap_model,
# self.highlight... | add tight_layout to viscm editor | py |
diff --git a/dvc/remote/local.py b/dvc/remote/local.py
index <HASH>..<HASH> 100644
--- a/dvc/remote/local.py
+++ b/dvc/remote/local.py
@@ -321,6 +321,7 @@ class RemoteLOCAL(RemoteBase):
continue
if not os.path.exists(cache):
missing.append(info)
+ continue
... | collect: skip if cache dir doesn't exist Related to #<I> | py |
diff --git a/salt/modules/ebuild.py b/salt/modules/ebuild.py
index <HASH>..<HASH> 100644
--- a/salt/modules/ebuild.py
+++ b/salt/modules/ebuild.py
@@ -277,7 +277,7 @@ def install(name=None,
'new': '<new-version>'}}
'''
- logging.debug('Called modules.pkg.install: {0}'.format(
+ log.... | Added version support for pkgs kwarg to ebuild.install | py |
diff --git a/salt/transport/ipc.py b/salt/transport/ipc.py
index <HASH>..<HASH> 100644
--- a/salt/transport/ipc.py
+++ b/salt/transport/ipc.py
@@ -692,7 +692,6 @@ class IPCMessageSubscriber(IPCClient):
except StreamClosedError as exc:
log.trace("Subscriber disconnected from IPC %s", self.socket_pa... | Do not raise StreamClosedError traceback but only log it (bsc#<I>) | py |
diff --git a/discover_jenkins/results.py b/discover_jenkins/results.py
index <HASH>..<HASH> 100644
--- a/discover_jenkins/results.py
+++ b/discover_jenkins/results.py
@@ -185,7 +185,7 @@ class XMLTestResult(TextTestResult):
'name': self.test_method_name(test_info.test_method),
... | Fix total_seconds invocation in dump_xml | py |
diff --git a/vaex/test/plot.py b/vaex/test/plot.py
index <HASH>..<HASH> 100644
--- a/vaex/test/plot.py
+++ b/vaex/test/plot.py
@@ -34,6 +34,9 @@ class check_output(object):
pass
def __exit__(self, exc_type, exc_val, exc_tb):
+ if exc_type is not None:
+ plt.close()
+ return
fn = tempfile.mktemp(".png")
... | Don't compare images when an exception occurs | py |
diff --git a/salt/utils/args.py b/salt/utils/args.py
index <HASH>..<HASH> 100644
--- a/salt/utils/args.py
+++ b/salt/utils/args.py
@@ -24,7 +24,8 @@ def condition_input(args, kwargs):
'''
ret = []
for arg in args:
- if isinstance(arg, six.integer_types):
+ if (six.PY3 and isinstance(arg, si... | Make the check conditional to the python version | py |
diff --git a/pipreqs/pipreqs.py b/pipreqs/pipreqs.py
index <HASH>..<HASH> 100755
--- a/pipreqs/pipreqs.py
+++ b/pipreqs/pipreqs.py
@@ -230,7 +230,7 @@ def parse_requirements(file_):
with open(file_, "r") as f:
data = [x.strip() for x in f.readlines() if x != "\n"]
except OSError as e:
- ... | Switch out print statement against `logging.error` | py |
diff --git a/buildbot/process/builder.py b/buildbot/process/builder.py
index <HASH>..<HASH> 100644
--- a/buildbot/process/builder.py
+++ b/buildbot/process/builder.py
@@ -420,9 +420,9 @@ class Builder(pb.Referenceable):
if setup.get('locks', []) != self.locks:
diffs.append('locks changed from %s t... | Fix checks for nextSlave / nextBuild hooks. A reconfig would break if you deleted the nextSlave / nextBuild hooks since setup['nextSlave'] would raise a KeyError. | py |
diff --git a/test/test.py b/test/test.py
index <HASH>..<HASH> 100644
--- a/test/test.py
+++ b/test/test.py
@@ -37,6 +37,8 @@ def test_sub():
assert str(EngNumber('220m') - EngNumber('220u')) == '219.78m'
assert str(EngNumber('220m') - EngNumber('220n')) == '220m'
+ assert str(0.220 - EngNumber('0.01')) =... | Added test for __rsub__() | py |
diff --git a/fedmsg_meta_fedora_infrastructure/tests/__init__.py b/fedmsg_meta_fedora_infrastructure/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/fedmsg_meta_fedora_infrastructure/tests/__init__.py
+++ b/fedmsg_meta_fedora_infrastructure/tests/__init__.py
@@ -300,11 +300,16 @@ class TestFASGroupApply(Base):
... | Retire this one bodhi masher message. | py |
diff --git a/outline/__init__.py b/outline/__init__.py
index <HASH>..<HASH> 100644
--- a/outline/__init__.py
+++ b/outline/__init__.py
@@ -1 +1 @@
-__version__ = '3.0.1'
+__version__ = '3.1.0' | Automated version bump to <I> | py |
diff --git a/pyclustering/cluster/__init__.py b/pyclustering/cluster/__init__.py
index <HASH>..<HASH> 100755
--- a/pyclustering/cluster/__init__.py
+++ b/pyclustering/cluster/__init__.py
@@ -180,6 +180,9 @@ class cluster_visualizer:
else:
ax = plt.subplot(self.__number_canvases, 1, index_... | [pyclustering.cluster] Return back property setting for invisible canvases. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -169,8 +169,6 @@ def main():
except ImportError:
from distutils.core import setup
setup(**METADATA)
-# from distutils.core import setup
-# setup(**METADATA)
if __name__ == '__main__':
main() | Remove commented old version of distutils sourcing | py |
diff --git a/spacy/cli/converters/conllu2json.py b/spacy/cli/converters/conllu2json.py
index <HASH>..<HASH> 100644
--- a/spacy/cli/converters/conllu2json.py
+++ b/spacy/cli/converters/conllu2json.py
@@ -2,6 +2,7 @@
from __future__ import unicode_literals
import json
+from ...compat import json_dumps
from ... impor... | Use spacy.compat.json_dumps for Python 2/3 compatibility (resolves #<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,12 +22,14 @@ for dirpath, dirnames, filenames in os.walk('easy_select2'):
setup(
name = "django-easy-select2",
- version = "1.0.0",
+ version = "1.0.2",
packages = find_packages(),
author = "asyncee... | Changed setup.py; added url and long_description | py |
diff --git a/master/buildbot/db/migrate/versions/001_initial.py b/master/buildbot/db/migrate/versions/001_initial.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/db/migrate/versions/001_initial.py
+++ b/master/buildbot/db/migrate/versions/001_initial.py
@@ -143,7 +143,7 @@ def test_unicode(migrate_engine):
... | "BLOB" is invalid type, use "LargeBinary" instead. | py |
diff --git a/azure_image_streams.py b/azure_image_streams.py
index <HASH>..<HASH> 100644
--- a/azure_image_streams.py
+++ b/azure_image_streams.py
@@ -53,7 +53,9 @@ ITEM_NAMES = {
"southeastasia": "asse1i3",
"southindia": "inss1i3",
"uknorth": "gbnn1i3",
+ "uksouth": "gbss1i3",
"uksouth2": "gbss2... | Add image ids for uksouth, ukwest. | py |
diff --git a/cloudshell/devices/autoload/device_names.py b/cloudshell/devices/autoload/device_names.py
index <HASH>..<HASH> 100644
--- a/cloudshell/devices/autoload/device_names.py
+++ b/cloudshell/devices/autoload/device_names.py
@@ -9,10 +9,14 @@ def get_device_name(file_name, sys_obj_id, delimiter=":"):
:param ... | get device name without a csv file | py |
diff --git a/scdl/scdl.py b/scdl/scdl.py
index <HASH>..<HASH> 100755
--- a/scdl/scdl.py
+++ b/scdl/scdl.py
@@ -597,9 +597,9 @@ def download_track(track, playlist_info=None):
logger.info('Track "{0}" already downloaded.'.format(title))
return
- # If file does not exist an error occured
+ # If f... | docs: fix simple typo, occured -> occurred (#<I>) There is a small typo in scdl/scdl.py. Should read `occurred` rather than `occured`. | py |
diff --git a/xmantissa/test/test_port.py b/xmantissa/test/test_port.py
index <HASH>..<HASH> 100644
--- a/xmantissa/test/test_port.py
+++ b/xmantissa/test/test_port.py
@@ -24,7 +24,7 @@ from axiom.item import Item
from axiom.attributes import inmemory, integer
from axiom.dependency import installOn
from axiom.scripts... | Merge axiomatic-upgrade-<I>-2 Author: jonathanj, exarkun Reviewer: exarkun, glyph Fixes: #<I> Add `axiomatic upgrade` for forcing a complete upgrade of a Store from the command line. | py |
diff --git a/salt/states/svn.py b/salt/states/svn.py
index <HASH>..<HASH> 100644
--- a/salt/states/svn.py
+++ b/salt/states/svn.py
@@ -152,6 +152,7 @@ def export(name,
username=None,
password=None,
force=False,
+ overwrite=False,
externals=True,
trus... | Adding overwrite flag to svn.export state | py |
diff --git a/imgaug/parameters.py b/imgaug/parameters.py
index <HASH>..<HASH> 100644
--- a/imgaug/parameters.py
+++ b/imgaug/parameters.py
@@ -739,12 +739,12 @@ class SimplexNoise(StochasticParameter):
class FrequencyNoise(StochasticParameter):
def __init__(self, exponent=(-4, 4), size_px_max=(4, 32), upscale_m... | Fix FrequencyNoise exponent being discrete instead of continuous | py |
diff --git a/pyslds/models.py b/pyslds/models.py
index <HASH>..<HASH> 100644
--- a/pyslds/models.py
+++ b/pyslds/models.py
@@ -112,11 +112,11 @@ class _SLDSGibbsMixin(_SLDSMixin):
if self.has_count_data else None
if self.has_count_data:
- self._emission_distn.r... | minor bug in resample_emission_distns | py |
diff --git a/bokeh/models/sources.py b/bokeh/models/sources.py
index <HASH>..<HASH> 100644
--- a/bokeh/models/sources.py
+++ b/bokeh/models/sources.py
@@ -105,8 +105,8 @@ class ColumnDataSource(ColumnarDataSource):
else:
raise ValueError("expected a dict or pandas.DataFrame, got %s" % raw_... | Optimized ColumnDataSource constructor (#<I>) | py |
diff --git a/django_productline/tasks.py b/django_productline/tasks.py
index <HASH>..<HASH> 100644
--- a/django_productline/tasks.py
+++ b/django_productline/tasks.py
@@ -97,7 +97,7 @@ def import_data(target_zip):
from django_productline.context import PRODUCT_CONTEXT
tasks.import_data_dir(target_zip)
# ... | PG_ context keys -> DB_ context keys | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ import os
import sys
from setuptools import setup
-if sys.version_info.major[0] == 2: # pragma: no cover
+if sys.version_info.major == 2: # pragma: no cover
sys.exit('Python 2 is not supported anymore. ... | setup.py had old sys version detection | py |
diff --git a/gremlin-python/src/main/python/tests/structure/io/test_graphbinaryV1.py b/gremlin-python/src/main/python/tests/structure/io/test_graphbinaryV1.py
index <HASH>..<HASH> 100644
--- a/gremlin-python/src/main/python/tests/structure/io/test_graphbinaryV1.py
+++ b/gremlin-python/src/main/python/tests/structure/io... | Fixing gremlin-python graphbinary test failure due to function rename | py |
diff --git a/pex/pex.py b/pex/pex.py
index <HASH>..<HASH> 100644
--- a/pex/pex.py
+++ b/pex/pex.py
@@ -308,6 +308,10 @@ class PEX(object): # noqa: T000
else:
profiler.print_stats(sort=pex_profile_sort)
+ def path(self):
+ """Return the path this PEX was built at."""
+ return self._pex
+
def... | Expose a PEX instance's path. (#<I>) Useful when merging pexes via PEX_PATH. | py |
diff --git a/pycoin/cmds/ku.py b/pycoin/cmds/ku.py
index <HASH>..<HASH> 100755
--- a/pycoin/cmds/ku.py
+++ b/pycoin/cmds/ku.py
@@ -238,7 +238,7 @@ def prefix_transforms_for_network(network):
except ValueError as e:
continue
# Probably a bug if we get here
- raise e
+ ... | Change exception that ku throws. | py |
diff --git a/src/heartbeat/checkers/databases.py b/src/heartbeat/checkers/databases.py
index <HASH>..<HASH> 100644
--- a/src/heartbeat/checkers/databases.py
+++ b/src/heartbeat/checkers/databases.py
@@ -35,6 +35,12 @@ def get_database_version(connection, engine):
'django.db.backends.mysql': 'SELECT version();'... | Added Geo Django engines to database checker. | py |
diff --git a/noise/functions.py b/noise/functions.py
index <HASH>..<HASH> 100644
--- a/noise/functions.py
+++ b/noise/functions.py
@@ -162,7 +162,7 @@ class KeyPair25519(_KeyPair):
def from_private_bytes(cls, private_bytes):
if len(private_bytes) != 32:
raise NoiseValueError('Invalid length o... | fix use of x<I> private keys (#<I>) This underscore is a typo and causes errors to be thrown. | py |
diff --git a/tests/unit/modules/localemod_test.py b/tests/unit/modules/localemod_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/localemod_test.py
+++ b/tests/unit/modules/localemod_test.py
@@ -49,7 +49,7 @@ class LocalemodTestCase(TestCase):
MagicMock(retu... | Swapping one unknow for debian failed, because debian use a different function internally. Switched to RedHat for the test as it returns LANG=XYZ | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.